ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1604. Country of Fools

using java, how to make mem usage about 3M?
Posted by howard li 12 Apr 2022 10:27

I try heap and sort to get AC using java, but memory usage is about 7M.
I browse the java submits, and find some top-rank solution only using about 3M memory.
e.g.
commit 9822957 by @hduads2022_20321226, 0.14 secs, 2908 KB.
commit 9290600 by @Mikhail, 0.109 secs, 1 272 KB.
how to lower the memory usage.