Lunar New Year and Cross Counting
1106A800· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5......XXX..XXX..XXX......
Output
1
Sample 2of 3
Input
2XXXX
Output
0
Sample 3of 3
Input
6......X.X.X..X.X.XX.X.X..X.X.X......
Output
4
58%
1106A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)