cf/mirror

Lexicographically Largest

CF
1930C1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
2
2 1
5
1 100 1000 1000000 1000000000
3
6 4 8
Output
3 2
1000000005 1000004 1003 102 2
11 7 6
1930C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)