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 1486. Equal Squares

what's the best order?
Posted by hoan 18 Feb 2011 12:02
I use Hash and binary-search and got Ac in 0.828 s.
my algo has order O(n^2 * (lg n)^2).
but some person can Ac in 0.109 s what this algo?
sorry for my poor english.

Edited by author 18.02.2011 12:03
Re: what's the best order?
Posted by kun368 7 Sep 2016 18:45
You can change map/set into unordered_map/set get faster, reduce time O(lg n) O(∩_∩)O

Edited by author 07.09.2016 18:47