Why am I getting MLE?

Revision en1, by andrewmca, 2023-08-17 00:54:39

My solution 218997954 gives MLE, and I'm not sure why. I use O(q) memory for q <= 10^6, which should be within the 256 MB limit.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English andrewmca 2023-08-17 00:54:39 162 Initial revision (published)