Codeforces Round 966 (Div. 3) F. Color Rows and Columns
- Time : O(k∗n∗ai∗bi)
- Space : O(n∗(ai+bi)+k)
c++
1 |
|