Hi,
i’ll start by saying i’m new here and new to python.
i’ve been struggling to submit a code i wrote for Queries On Tree in school tab (was a part of the ltime19.
my problem is that i get RE ( NZEC ) and i have no idea why.
i know the code works fine for small amount of inputs ,i ran it in ideone.com, as i read in one of the answers that both sites use the same engine ,and it works fine.
i’m using raw_input() and not just input() to get the inputs.
i also ran it in cmd line (windows) with an input file like this : myCode.py < inputFile > outputFile and it looks fine.
my code (written in python 2.7) is a bit long so here is the ideone link : ideone
can anyone help me understand what am i missing here ?
thanks in advance
Sivan