PROBLEM IN CHEFK1 SEPT LONG CHALLENGE

Someone please help, I am not getting at what value its gettting WA as I have checked all values from 1 to 10 at pen and paper.
MY SOLUTION

Consider the testcase:

1
3 2
1 Like

Yes we answer would be 1

The answer from your program is 1, but should be 2.

ohh I got it Thanks…

1 Like

Such a silly Mistake … I got AC

Correct AC

1 Like