Codeforces Round #489 (Div. 2) B. Nastya Studies Informatics
- Time : O(sqrt(lcm/gcd)+2(sqrt(lcm/gcd)))
- Space : O(2(sqrt(lcm/gcd)))
c++
1 |
|