Why My submission is only partially accepted!

https://www.codechef.com/viewsolution/31974888
https://www.codechef.com/viewsolution/31978428
Both are almost the same program . Both used Fast I/Os
I used for loop and not even storing any values in array , still getting partially Accepted. Please Explain.

i also try making submission with my fast i/o classes. I got partial,
It is because of System.out.println() .
Do you know System.out.println() takes a lot of time,
use Printwriter now and you will get the full marks.
in this i got partial=
https://www.codechef.com/viewsolution/31979352
in this i got full
https://www.codechef.com/viewsolution/31979840

1 Like

I will try PrintWriter , then.

yes try it

Thanks, @akman10
https://www.codechef.com/viewsolution/31980817