cf/mirror

Andrey and Escape from Capygrad

CF
1859D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
3
6 17 7 14
1 12 3 8
16 24 20 22
6
10 2 23 15 28 18
3
3 14 7 10
16 24 20 22
1 16 3 14
9
2 4 6 8 18 23 11 13 15
2
1 4 2 3
3 9 6 7
3
4 8 1
5
18 24 18 24
1 8 2 4
11 16 14 14
26 32 28 30
5 10 6 8
9
15 14 13 27 22 17 31 1 7
6
9 22 14 20
11 26 13 24
21 33 22 23
21 33 25 32
1 6 3 4
18 29 20 21
8
11 23 16 5 8 33 2 21
Output
14 14 23 15 28 22
14 14 14 14 22 23 14 14 15
7 8 7
15 14 14 30 24 17 31 4 8
32 32 32 5 8 33 4 32
1859D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…