Please help me debug this:D. Colored Portals
Difference between en1 and en2, changed 94 character(s)
This was my BS code [submission:https://mirror.codeforces.com/contest/2004/submission/280037349]↵
and This is my code using monotonic stack approach [submission:
https://mirror.codeforces.com/contest/2004/submission/280042055].Still both of them fail on a hidden testcase.Can anyone help me regarding this?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English mayank.nichlani22 2024-09-06 12:25:36 94
en1 English mayank.nichlani22 2024-09-06 12:22:37 335 Initial revision (published)