議会 (Council)
Unrated
日本語
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
3 3 1 0 0 1 1 0 1 1 1
Sample output 1
3 3 2
Sample input 2
4 12 1 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 0
Sample output 2
5 4 6 6
Sample input 3
16 4 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1
Sample output 3
3 3 3 2 3 2 2 1 3 2 2 1 2 1 1 0
Sample input 4
4 2 1 0 0 1 1 1 1 1
Sample output 4
2 2 1 1
Notes
原典:JOI 2022/2023 春季トレーニング合宿 議会 (Council)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet