|
|
back to boardHow to pass test 15. Posted by MrBones 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! Re: How to pass test 15. Posted by Juve45 11 Oct 2016 18:39 What algorithm did you use for gcd? can you paste only the gcd code here? |
|
|