cf/mirror

Digits Permutations

CF
138B1900· candidate master1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 2
Input
198
Output
981
819
Sample 2of 2
Input
500
Output
500
500
138B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)