acash's blog

By acash, history, 6 months 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.com/contest/675/problem/D

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

»
6 months ago, # |
  Vote: I like it +5 Vote: I do not like it

Check this

»
6 months ago, # |
  Vote: I like it +5 Vote: I do not like it

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