Confussion Regurding upper_bound in C++

Revision en3, by RakibJoy, 2023-05-05 13:00:44

Please look at my two submissions.

204540477 204540870

My question is why I am getting TLE in my second submission?

The only difference between these submissions is given in the picture.

As far as I know, the complexity of the upper bound doesn't depend on the value.

Please Help.

Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English RakibJoy 2023-05-05 13:00:44 1 Tiny change: 'ng TLE in y second s' -> 'ng TLE in my second s'
en2 English RakibJoy 2023-05-05 12:34:05 76 Tiny change: 'e picture.![ ](/pred' -> 'e picture.\n\n![ ](/pred' (published)
en1 English RakibJoy 2023-05-05 12:31:45 387 Initial revision (saved to drafts)