cf/mirror

Restoring Increasing Sequence

CF
490E2000· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
?
18
1?
Output
YES
1
18
19
Sample 2of 3
Input
2
??
?
Output
NO
Sample 3of 3
Input
5
12224
12??5
12226
?0000
?00000
Output
YES
12224
12225
12226
20000
100000
490E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)