Why is it getting TLE?

Revision ru1, by lxnu, 2023-09-10 00:25:59

Hey, i was trying to solve this problem 1644D - Cross Coloring recently. And, i'm somehow getting TLE, even though it's O(Q), there are no other time consuming data structures, like sets, maps, etc. And others' solutions are pretty similar, the idea is right, but mine is getting TLE. Any advice or help would be lot appreciated :)

Here is my submission: 222648815

Tags tle, help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru1 Russian lxnu 2023-09-10 00:25:59 395 Первая редакция (опубликовано)