April Fools Day Contest 2016 B. Scrambled
- Time : O(log(Ai)+lcm(A)/Ai)
- Space : O(lcm(A))
c++
1 |
|