AC turns into TLE with a weird change

Правка en1, от Hassan_Fathi, 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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Hassan_Fathi 2024-05-07 05:40:35 387 Initial revision (published)