cf/mirror

Reverse a Permutation

CF
2193B800· newbie2s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1multi-test • hover to link
Input
4
4
3 2 1 4
3
3 1 2
4
4 3 2 1
2
2 1
Output
4 1 2 3
3 2 1
4 3 2 1
2 1
2193B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)