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