[1541B] Pleasent Pairs — Same logic, One got AC, but another gives TLE. Why?

Правка en1, от Cooper1214, 2022-05-30 17:08:27

So, I have encountered a strange problem while solving 1541B — Pleasent Pairs My first solution gets accepted ( Solution 1 ) , while the second one got TLE ( Solution 2).

I don't understand why this is happening. They both are almost same. Any help? Thank you.

Теги tle, strange behavoiur

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Cooper1214 2022-05-30 17:11:33 18
en1 Английский Cooper1214 2022-05-30 17:08:27 552 Initial revision (published)