WA in NXS2

https://www.codechef.com/viewsolution/29688369

Consider the testcase:

1
4
1 Like

@ssjgz i made the changes in the code
https://www.codechef.com/viewsolution/29688478
but still getting WA

1
6

try
1
53

it’s not necessary for A to be 1 everytime.

1
10

will have solution as

2 8