cf/mirror

Monocarp and the Set

CF
1886D2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
6 4
<?>?>
1 ?
4 <
5 <
1 >
Output
3
0
0
0
1
Sample 2of 2
Input
2 2
>
1 ?
1 <
Output
1
0
1
1886D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)