Why does my solution take up that much memory? (java program)

Revision en1, by idk321, 2020-04-28 14:27:35

I solved this problem: https://mirror.codeforces.com/contest/1328/problem/E with the following program: https://mirror.codeforces.com/contest/1328/submission/78374395. The time it takes is ok, but it takes up quite a lot of memory (180 mb), but that doesn't make sense in my opinion since the program stores at most about 15 million integers.

Tags #memory, #java, #graph

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English idk321 2020-04-28 14:27:35 389 Initial revision (published)