|
|
вернуться в форумHow to pass test 15. 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. Послано Juve45 11 окт 2016 18:39 What algorithm did you use for gcd? can you paste only the gcd code here? |
|
|