|  | 
|  | 
| back to board | hint I used segment tree with update func and HashMap for indexes of elements(+). Java AC 0.34sec
 
 Edited by author 27.01.2016 19:10
 
 Edited by author 27.01.2016 19:38
 
 Edited by author 27.01.2016 19:49
Re: hint Posted by svr  27 Jan 2016 21:29vector of segments and binary search also must work | 
 | 
|