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

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

So i am solving a question named verse for santa of educational codeforces round 79. I have written my code using binary search https://mirror.codeforces.com/contest/1279/submission/79356510 The problem is for the testcases give in the question my code is giving the correct answer on my system(I code on jdoodle Online C++ 14 Compiler IDE), but giving different answer when i am submitting it to codeforces. Please help!

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

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

Did you consider different sizes of data types on your system and codeforces?

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

I guess your variable 'ma' has not been assigned yet.

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

Same problem for me in this submission: 134321653. When I build and run this code in geany on ubuntu I get correct output, but when I submit it on codeforces it looks like I didn't output anything.