darkcry's blog

By darkcry, history, 6 years ago, In English

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!

  • Vote: I like it
  • -10
  • Vote: I do not like it

| Write comment?
»
6 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

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

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

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

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.