Можно ли находить std:distance() для итераторов std::set за O(1)?
?
CF Edu Round 195 Solution Discussion