hello there : i'm trying to solve the trees in a row problem http://codeforces.com/contest/402/problem/B and after numerous tries i am still trying to find the cause of the runtime error i am facing at test case 6 ... any help would be appreciated :)
and here is my submission http://codeforces.com/contest/402/submission/7199246
I see a mistake in function print. Check your if-statements in this function. GL