切符の手配 (Arranging Tickets)
Unrated
日本語
Language
Contribute a translation- Time limit
- 4000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
3 3 1 2 1 2 3 1 3 1 1
Sample output 1
1
Sample input 2
3 2 1 2 4 1 2 2
Sample output 2
3
Sample input 3
6 3 1 4 1 2 5 1 3 6 1
Sample output 3
2
Notes
Tags
No tags yet