WORTH's blog

By WORTH, history, 22 months ago, In English

In problem 1788D - Движущиеся точки

I faced MLE verdict in Test 1 194346234

It got accepted on removing the custom stack 194345608

I've been using this template for a while and never faced this problem. Can someone please explain why I'm getting MLE Verdict?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Please look at your stacktrace

[0.138s][warning][os,thread] Failed to start thread — _beginthreadex failed (ENOMEM) for attributes: stacksize: 262144k, flags: CREATE_SUSPENDED STACK_SIZE_PARAM_IS. java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached at java.base/java.lang.Thread.start0(Native Method) at java.base/java.lang.Thread.start(Thread.java:798) at MovingDots.main(MovingDots.java:21)

  • »
    »
    22 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Sorry, but I still didn't got it. The memory limit is 1024 MB. So why can't I create a stack of 256 MB? The most confusing part is that this question has greater memory limit than others, still I got MLE only in this one.