Skip to content

Hobson’s Trains

Unrated
English

Language

Contribute a translation
Time limit
5000 ms
Memory limit
2048 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Hobson’s Trains, page 1

Hobson’s Trains, page 2

Examples

Sample input 1
6 2
2
3
4
5
4
3
Sample output 1
1
2
4
5
3
1
Sample input 2
5 3
2
3
1
5
4
Sample output 2
3
3
3
2
2

Tags

No tags yet

Source