wrong answer for n>1000... QSET..why?

as there is no type 1 query for third subtask why am i getting wrong answer for n>1000…
while I got AC for 1st subtask////
I am not getting TLE or any other error…
plz help

I got that… there was an NZEC…

but now i got another problem…plz help…

Getting NZEC in QSET While Submitting for every subtask , But if i run it on any IDE it runs perfectly. Donno y!!!

check for large input