Special Grid
435D2000· candidate master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 5100001001000001
Output
20
Sample 2of 3
Input
2 20000
Output
4
Sample 3of 3
Input
2 21111
Output
0
58%
435D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)