Codeforces Round 226 (Div. 2) C. Bear and Prime Numbers
- Time : O(MAXN∗sqrt(MAXN)+nlogn+qlog(factor(Ai)))
- Space : O(factor(Ai)+MAXN+n)
c++
1 |
|