Codeforces Round 197 (Div. 2) C. Xenia and Weights
- Time : O(n∗|s|∗count(s,′1′)∗diff)
- Space : O(n∗|s|∗diff)
c++
1 |
|