Wrong answer on a solution that presumably looks correct

One of the questions of today’s Lunchtime – Contest Page | CodeChef

My solution – Sahil Rajpal's submission of Fixed Points | CodeChef

I have cracked my head around it but i can’t seem to get around why the solution is failing.
Please help me as to why its a WA.
Thanks.

That’s just the link to the contest page again :slight_smile:

oops my bad.
here it is, Sahil Rajpal's submission of Fixed Points | CodeChef
if it doesn’ t work please search saahilr in the submissions.
cheers!

1 Like

Use long long

Thanks. I officially hate myself now.

1 Like

This is terrible advice and people will scold me for doing this. But use
#define int long long
and replace
int main() with signed main()