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

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

In hello 2018 round I wrote my submission to problem-C Party Lemonade, it ran well on geeksforgeeks c++14 compiler giving correct ans for test case 4 but the same code with same input gave wrong ans on codeforces c++14 compiler. why is it so.. mysubmission url:-http://mirror.codeforces.com/submissions/tibialAcorn98 submission no -34026659

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

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

Read this for most common causes. Didn't look at your code but I would guess that you have problems with floating point numbers.

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

http://mirror.codeforces.com/contest/913/submission/34037319

resubmitted your code with long long vs long (which is 32 bit). Now it goes to test 7

it still got WA so you have other bugs, but hopefully this helps