Concatenated Multiples
1029D1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
6 1145 1 10 12 11 7
Output
7
Sample 2of 3
Input
4 22 78 4 10
Output
12
Sample 3of 3
Input
5 23 7 19 3 3
Output
0
58%
1029D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)