While solving problem CYCLCSUM from febuary cookoff I needed values of 2 variables as negative infinity so I used LLONG_MIN for their instantiation and the verdict was WA but on changing their values to -1e18 the verdict was AC . Can somebody explain why is this happening ?
WA code : CodeChef: Practical coding for everyone
AC code : CodeChef: Practical coding for everyone
see line 36 for checking the difference
1 Like
Consider the testcase:
1
1
-1
3 Likes
Thanks a bunch buddy ,got the fault
2 Likes