In “Weasel does Xor on Tree” I could not make even the simplest solution passing at least one test case - every of them gave “Wrong Answer”. But it gave the expected answer on the sample provided in the problem statement.
Now when code of successful submissions is available I compared their output to mine on one of test cases (from here https://discuss.codechef.com/questions/111054/wa-in-weaseltxsept17) and it’s the same, but it gets WA.
Does anybody have an idea what is wrong?
Problem statement: https://www.codechef.com/SEPT17/problems/WEASELTX