tibialAcorn98's blog

By tibialAcorn98, history, 8 years ago, In English

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

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

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

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

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