cf/mirror

Maximum Sum of Digits

CF
1060B1100· newbie2s512 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 2
Input
35
Output
17
Sample 2of 2
Input
10000000000
Output
91
1060B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)