cf/mirror

All Possible Digits

CF
1759F1800· expert3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
11
2 3
1 2
4 2
1 1 1 1
6 6
1 2 3 4 5 0
5 2
1 0 1 0 1
3 10
1 2 3
5 1000
4 1 3 2 5
3 5
2 3 4
4 4
3 2 3 0
1 3
2
5 5
1 2 2 2 4
3 4
1 0 1
Output
1
1
0
0
7
995
2
1
1
1
2
1759F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)