cf/mirror

Save the problem!

CF
865A1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
18
Output
30 4
1 5 10 25
Sample 2of 3
Input
3
Output
20 2
5 2
Sample 3of 3
Input
314
Output
183 4
6 5 2 139
865A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)