会議 (Conference)
Unrated
日本語
Language
Contribute a translation- Time limit
- 2000 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
9 A??B??C?A 3 1 3 1 4 1 0 0 0 5
Sample output 1
3 4 4
Sample input 2
12 A???A?B????A 4 0 8 0 2 6 0 7 1 0 3 5 0
Sample output 2
4 4 2 2
Sample input 3
28 ACB??B???BCB??B????B?AAA?BBA 26 6 1 6 4 5 4 2 3 8 9 2 2 11 0 2 8 4 1 11 0 2 2 0 11 0 1 12 12 1 0 10 3 0 1 4 8 3 7 3 2 8 3 1 3 9 11 1 1 7 0 6 6 4 3 8 4 1 0 10 3 13 0 0 11 1 1 0 6 7 2 8 3 9 0 4 0 0 13
Sample output 3
15 11 13 13 15 12 15 15 16 15 13 12 10 9 13 15 15 11 12 9 15 15 11 9 15 17
Notes
JOI 2024/2025 会議 · JCIOI · CC BY-SA 4.0
Tags
No tags yet