Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор C33_L0, история, 4 года назад, По-английски

For some reason my code isn't working on CodeForces but outputs the correct answer on my machine; I attached the code.91654081

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

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

Check this out.

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

You should rather google it before posting it on a thread that way you could get your problem solved faster and without increasing the number of "compiler difference" posts. It's because your local system and codeforces don't obey to the same rules. Your local machine might initialise a vector of size n with zeroes but codeforces might do the same with some garbage value. Same with the case of overflows and underflows.