Why is it getting TLE?

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

Теги tle, help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru1 Русский Arthas 2023-09-10 00:25:59 395 Первая редакция (опубликовано)