WA in MAXNUM3 in 1st subtask


can anyone tell any testcase where its going wrong? It gave AC in 2nd subtask and WA in 1st.

Thanks :slight_smile:


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 9


code I am suffering from the same though :stuck_out_tongue:


hey i have already answered this in your comment :slight_smile:
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?