Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор WORTH, история, 19 месяцев назад, По-английски

In problem 1788D - Moving Dots

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?

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

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

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

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

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)

  • »
    »
    19 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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.