cf/mirror

Maximum Cost Permutation

CF
2144B1000· newbie2s256 MB⌨ stdin/stdout

Examples

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