Help needed for SPOJ BUILDING — Buildings

Правка en1, от I__Love__TANIA, 2018-09-18 05:17:24

I need help to solve SPOJ — BUILDING

I can solve it in O( total h_i * 2 * log(m) ). But it is not enough to get Accepted.

How can i optimize complexity?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский I__Love__TANIA 2018-09-18 05:17:24 248 Initial revision (published)