|
|
back to boardI 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! What algorithm did you use for gcd? can you paste only the gcd code here? |
|
|