cf/mirror

Distinct Digits

CF
1228A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
121 130
Output
123
Sample 2of 2
Input
98766 100000
Output
-1
1228A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)