Graph Reconstruction
329C2400· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
8 71 22 34 55 66 88 77 4
Output
1 44 61 62 77 58 52 8
Sample 2of 3
Input
3 21 22 3
Output
-1
Sample 3of 3
Input
5 41 22 33 44 1
Output
1 33 55 22 4
58%
329C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)