Cyclic Hamming (Hard Version)
1896H23500· legendary gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 6
Input
100110101
Output
1
Sample 2of 6
Input
100110110
Output
0
Sample 3of 6
Input
10??101??
Output
2
Sample 4of 6
Input
2000?????01010101
Output
3
Sample 5of 6
Input
20???????1???????
Output
68
Sample 6of 6
Input
50101010101010101010101010101010101010101010101010101010101010101????????????????????????????????????????????????????????????????
Output
935297567
58%
1896H2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)