What is wrong with my submission of CIELRCPT

My solution passed all the test case given but it failed on submission i want to know in which test cases my solution failed.
Question Link:-

Solution Link:-
https://www.codechef.com/viewsolution/27548926

Only had a quick look at this, so might be wrong, but consider the testcase:

1
20481

Yeah the output should be 11 but mine is 16398.So,it’s definetly wrong.I started competitive programming recently and i am having some trouble thinking the logic behind problems.

1 Like

u r almost there just a small logic u r missing even i am beginner to competitive but trust me it comes in practice take note and pen and work out u will get it.

1 Like

I submitted successfully yesterday.Thanks.

2 Likes