JOI ツアー (JOI Tour)
UnratedFunction
日本語
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 0 1 2 0 1 1 2 0
Sample output 1
1
Sample input 2
3 0 1 2 0 1 1 2 2 2 0 0 2
Sample output 2
1 0 1
Sample input 3
7 1 0 2 2 0 1 0 0 1 0 2 1 3 1 4 2 5 2 6 7 0 0 1 1 2 0 3 0 4 2 5 2 6 2
Sample output 3
3 0 4 4 0 4 5 5
Notes
JOI 2023/2024 JOI ツアー · JCIOI · CC BY-SA 4.0
Tags
No tags yet
Source
This problem accepts only these languages.
C++20