cf/mirror

Concatenated Multiples

CF
1029D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
6 11
45 1 10 12 11 7
Output
7
Sample 2of 3
Input
4 2
2 78 4 10
Output
12
Sample 3of 3
Input
5 2
3 7 19 3 3
Output
0
1029D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)