AC turns into TLE with a weird change

Revision en1, by guess_who, 2024-05-07 05:40:35

Hello guys!

I was solving some problems on dp on subsets and I found this strange one

this got AC, but that gets TLE, and the only difference between them is swaping the inner 2 loops (mask and j).

I'm really curious to know why :D

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English guess_who 2024-05-07 05:40:35 387 Initial revision (published)