Need help getting WA :( CODE ANKTRAIN

link to question : https://www.codechef.com/problems/ANKTRAIN
can some one my recitfy my error
i tried multiple test cases and matched it with a accepted one . still am getting partial correct and WA in some other case
https://www.codechef.com/viewsolution/29106189

Consider the testcase:

1
231

Edit:

Smallest one:

1
15
2 Likes

thanx it was a typo :slight_smile:

1 Like