白黒の点 (Monochrome Points)
Unrated
日本語
Language
Contribute a translation- Time limit
- 5000 ms
- Memory limit
- 512 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
3 BBWWBW
Sample output 1
2
Sample input 2
5 BWBWBBWBWW
Sample output 2
8
Sample input 3
10 WBBBWBBWWBWWBWWBWBWB
Sample output 3
41
Sample input 4
16 WWWBWBBBBWWBWWBWWBBWWBBBWBBBWWBW
Sample output 4
105
Notes
JOI Open Contest 2020 · JCIOI · CC BY-SA 4.0
Tags
No tags yet