[Java] MLE in Atcoder abc213d

Правка en1, от warks, 2021-08-17 09:47:35

Diffcheck between the two codes (first, second) shows that only an extra println statement is present in the AC code, surprisingly though, the MLE code consumes about 1GB memory whereas the AC one only consumes 260MB.

It's been bugging me a lot, why would this happen — can anyone please help?

Thanks in advance.

Теги #java, #atcoder, #ambiguousresult

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский warks 2021-08-18 10:06:39 0 (published)
en2 Английский warks 2021-08-18 10:03:54 357
en1 Английский warks 2021-08-17 09:47:35 353 Initial revision (saved to drafts)