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

MrBones How to pass test 15. [1] // Problem 1846. GCD 2010 29 Jul 2016 22:39
I did it! I have TL 15 for a long time, but now I solved the problem. I use treap with gcd, but treap has a big constant and gcd works for O(log), so I write binary algorithm of calculating gcd instead of Euclid and it works!
Juve45 Re: How to pass test 15. // Problem 1846. GCD 2010 11 Oct 2016 18:39
What algorithm did you use for gcd?
can you paste only the gcd code here?