WA in MAXNUM3 in 1st subtask


#1

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


Thanks :slight_smile:


#2

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.


#3

Here’s one->
1
1 9


#4

code I am suffering from the same though :stuck_out_tongue:


#5

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


#6

Mate, can you explain the role of variable p in your code?