Whats the difference?

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 : https://www.codechef.com/viewsolution/29873719
AC code : https://www.codechef.com/viewsolution/29875104
see line 36 for checking the difference

1 Like

Consider the testcase:

1
1
-1
3 Likes

Thanks a bunch buddy ,got the fault :smiley:

2 Likes