Upper_bound giving TLE under different approaches 
Difference between en1 and en2, changed 1 character(s)
I was doing the question [problem:https://codeforces.com/problemset/problem/1372/B]. Here are my two submissions [submission:271307925] and [submission: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. 

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English YogeshZT 2024-07-19 05:17:01 6 Tiny change: '[problem:1372B]. Here a' -> '[problem:1498B]. Here a'
en3 English YogeshZT 2024-07-19 05:15:59 43
en2 English YogeshZT 2024-07-19 05:13:41 1
en1 English YogeshZT 2024-07-19 05:12:50 378 Initial revision (published)