Блог пользователя aditya123garg

Автор aditya123garg, история, 5 лет назад, По-английски

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

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

  • Проголосовать: нравится
  • +12
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Cause ur long max is less then 10000000000

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

LONG_MAX is not working on Codeforces.

LONG_MAX on Codeforces shows 2147483647.

That's why you receive WA.

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

quick tip : use custom test to test your solution