cf/mirror

Inversion Value of a Permutation

CF
2145D1800· expert3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
4 5
5 10
5 0
6 8
3 1
Output
3 1 4 2
5 4 3 2 1
1 2 3 4 5
2 3 5 6 1 4
0
2145D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…