Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) B. Bash’s Big Day
- Time : O(sqrt(sum(A)))
- Space : O(prime(max(A)))
c++
1 |
|