Codeforces Beta Round #67 (Div. 2) C. Modified GCD
- Time : O(sqrt(log(a,b))+nlog(sqrt(log(a,b))))
- Space : O(factor(log(a,b)))
c++
1 |
|