Codeforces Beta Round #62 B. Energy exchange
- Time : O(nlog(max(Ai)−min(Ai)))
- Space : O(1)
c++
1 |
|