_index's blog

By _index, history, 8 years ago, In English

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.

  • Vote: I like it
  • +3
  • Vote: I do not like it

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

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.