Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

acash's blog

By acash, history, 7 years ago, In English

This is authors solution 55959992

This is my solution 55959887

I am getting TLE although i have used the same approach

https://codeforces.me/contest/675/problem/D

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
7 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Check this

»
7 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Try using set's upper_bound instead of upper_bound from header algorithm.