ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1846. GCD 2010

hint
Posted by [kubsu] Eugene Kudinov 27 Jan 2016 18:49
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:29
vector of segments and binary search also must work