cf/mirror

Find the Car

CF
1971E1500· specialist3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
10 1 3
10
10
0
6
7
10 2 4
4 10
4 7
6
4
2
7
1000000000 1 1
1000000000
1000000000
99999999
6 1 3
6
5
2
6
5
Output
0 6 7
5 4 2 5
99999999
1 5 4
1971E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)