aditya123garg's blog

By aditya123garg, history, 6 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.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 !!

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

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

Cause ur long max is less then 10000000000

»
6 years ago, # |
  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.

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

quick tip : use custom test to test your solution