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

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

149C - Division into Teams

Hi,

My solution in C++ was giving WA while the same solution got AC in python.

python code

C++ code

In case you are down voting, please tell the reason as well.

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

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

Auto comment: topic has been updated by hatim009 (previous revision, new revision, compare).

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

I'm pretty surprised that the same code in C++ and python didn't get compile error :)

On the more serious side, it seems that your array is too small in C++ solution.