Hey Guys, My solution to the third problem of yesterday's round(Educational Round 63) fails on test case 20 according to Codeforces compiler but I am getting the correct answer on my own compiler and even on dry running it by myself.
Question link :-https://codeforces.net/contest/1155/problem/C
Solution link :-https://codeforces.net/contest/1155/submission/53144801
Test case on which it is failing :
2 1 10000000000 20000000000 10000000000
Plzz Guys see to it what's happening here !!
Cause ur long max is less then 10000000000
Thnks bro :)
LONG_MAX is not working on Codeforces.
LONG_MAX on Codeforces shows 2147483647.
That's why you receive WA.
quick tip : use custom test to test your solution
Yup!! Will use it from now onwards.Thnks.