掃除 (Sweeping)
Unrated
日本語
Language
Contribute a translation- Time limit
- 11000 ms
- Memory limit
- 2048 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
6 2 10 1 1 4 0 4 2 3 3 3 1 1 4 1 2 2 3 2 0 1 4 3 2 1 3 1 2
Sample output 1
1 3 3 2 3 3 6 0
Sample input 2
9 4 8 2 3 3 1 1 6 4 3 2 6 1 3 2 2 1 4 2 3 1 2 2 4 1 1
Sample output 2
3 6 4 3 7 1 6 3
Sample input 3
8 1 8 1 5 4 4 1 2 6 1 2 2 3 4 2 2 2 5 1 1 1 3
Sample output 3
4 1 3 5 3 2
Sample input 4
7 4 9 1 5 2 2 4 2 5 0 2 6 2 3 1 2 3 6 1 4 3 1 1 1 2 2 1 3
Sample output 4
4 2 5 1 1 6 5 2
Sample input 5
20 5 25 10 6 0 4 2 1 1 0 2 3 2 18 3 9 4 1 5 4 0 2 3 10 4 3 3 3 3 2 9 4 9 1 3 12 1 4 3 19 1 3 1 9 2 1 1 7 1 6 4 3 3 1 10 1 1 1 5 2 0 1 2 2 2 1 7
Sample output 5
2 17 2 17 9 8 0 17 1 17 3 3 10 10 2 17 2 17 0 17
Notes
原典:JOI 2019/2020 春季トレーニング合宿 掃除 (Sweeping)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet