Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

PickledSausage's blog

By PickledSausage, history, 3 years ago, In English

Hello,

So, I noticed several times that declaring some variables inside main gives runtime error, usually when they take much space, but still it does not seem it hits memory limit. For example, in these cases 134618509 134618526. In the first one arrays are declared outside main, while in the latter one inside main. Despite the fact they take up the same space the 2nd one gives runtime error. Could you please explain why this happens? Thanks in advance.

Full text and comments »

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