cf/mirror

Reflect Sort

CF
2206H1800· expert2s1024 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
5
6 3 5 5 2
Output
10
Sample 2of 2
Input
3
2 1 100000
Output
100002
2206H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)