Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

aditya123garg's blog

By aditya123garg, history, 8 years ago, In English

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.me/contest/1155/problem/C

Solution link :-https://codeforces.me/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 !!

  • Vote: I like it
  • +12
  • Vote: I do not like it

»
8 years ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Cause ur long max is less then 10000000000

»
8 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

LONG_MAX is not working on Codeforces.

LONG_MAX on Codeforces shows 2147483647.

That's why you receive WA.

»
8 years ago, hide # |
← Rev. 2  
Vote: I like it +1 Vote: I do not like it

quick tip : use custom test to test your solution