Wrong answer on a solution that presumably looks correct

One of the questions of today’s Lunchtime – CodeChef: Practical coding for everyone

My solution – CodeChef: Practical coding for everyone

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, CodeChef: Practical coding for everyone
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()