Upper_bound giving TLE under different approaches

Правка en3, от YogeshZT, 2024-07-19 05:15:59

I was doing the question 1372B - Omkar and Last Class of Math. Here are my two submissions 271307925 and 271307851. One of the approaches works correctly while other gives TLE. The only difference between them is how I initialize the iterator 'it' using the upper_bound function.

Теги upper_bound, tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский YogeshZT 2024-07-19 05:17:01 6 Tiny change: '[problem:1372B]. Here a' -> '[problem:1498B]. Here a'
en3 Английский YogeshZT 2024-07-19 05:15:59 43
en2 Английский YogeshZT 2024-07-19 05:13:41 1
en1 Английский YogeshZT 2024-07-19 05:12:50 378 Initial revision (published)