#P3732. [HAOI2017] 供给侧改革
[HAOI2017] 供给侧改革
Output Format
Output lines, each containing a single integer, the answer to the corresponding query.
6 3
010110
2 5
1 6
1 2
4
6
0
Hint
[Constraints and Notes]
| Data Point | Scale of | Scale of |
|---|---|---|
For all testdata, it is guaranteed that , , , and the string is randomly generated.
Translated by ChatGPT 5
京公网安备 11011102002149号