Educational Codeforces Round 81 (Rated for Div. 2) D. Same GCDs
- Time : O(log(min(a,m))+√m/gcd(a,m))
- Space : O(1)
c++
1 |
|