A weird TLE

Revision en1, by 9inai, 2023-12-25 22:54:34

There this task 1670B - Dorms War, which has an O(n) solution. Isn't my 238883260 optimal as well? It keeps getting TLE's on 35th test :/ No idea how to optimize it really

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English 9inai 2023-12-25 22:54:34 193 Initial revision (published)