Why is Memory limit exceeding on my solution?

Revision en1, by Shikharraj, 2024-08-31 18:36:40

Hello CF community,

I am stuck on problem (Connect). My solution is exceeding memory limit and I am not sure why.

My submission : 278951587

Chatgpt's Solution: 278954226

My code is similar to chatgpt's, therefore I am not able to find any reasonable differences.

Any suggestions what might be wrong with my code?

Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Shikharraj 2024-08-31 18:36:40 560 Initial revision (published)