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

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

Hi there. I was solving this problem, and my solution passed all samples. But when I submitted my solution I got CE. Then I created constructor for struct, and it got accepted. Why?
CE solution, and AC solution.

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

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

Interesting. When I decrease array size (lmaxn constant), the code compiles. Maybe the compiler at CodeForces does something strange like allocating a large amount of memory or generating a large executable, and CF doesn't like it.