been getting wa for quite some time. couldn’t find any bug myself. any help would be greatly appreciated. thanks in advance.
problem: https://www.spoj.com/problems/QTREE/ code: https://paste.ubuntu.com/p/d9SF6MGvkF/
thank you…