can anyone tell any testcase where its going wrong? It gave AC in 2nd subtask and WA in 1st.
Thanks ![]()
can anyone tell any testcase where its going wrong? It gave AC in 2nd subtask and WA in 1st.
Thanks ![]()
Well, It seems like a corner case included in 1st test case but not in second :P. Consider yourself lucky for 70 points. :P.
I’ll tell if i find that corner case.
Here’s one->
1
1 9
hey i have already answered this in your comment ![]()
link : https://discuss.codechef.com/questions/115538/october-lunchtime-unofficial-editorials-first-two-problems
Mate, can you explain the role of variable p in your code?