cf/mirror

Parking Lot

CF
46D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
30 1 2
6
1 5
1 4
1 5
2 2
1 5
1 4
Output
0
6
11
17
23
Sample 2of 3
Input
30 1 1
6
1 5
1 4
1 5
2 2
1 5
1 4
Output
0
6
11
17
6
Sample 3of 3
Input
10 1 1
1
1 12
Output
-1
46D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)