I was solving this question and having completed solving it was running correctly on my system and ideone too
but giving SIGSEGV on spoj
here is the link to the solution
please help me spot due to what i am getting this error
I was solving this question and having completed solving it was running correctly on my system and ideone too
but giving SIGSEGV on spoj
here is the link to the solution
please help me spot due to what i am getting this error
N <= 200000
Thanks mate
Such a silly mistake