Upper_bound giving TLE under different approaches

Revision en2, by YogeshZT, 2024-07-19 05:13:41

I was doing the question [problem:https://codeforces.net/problemset/problem/1372/B]. 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.

Tags upper_bound, tle

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)