cf/mirror

Satyam and Counting

CF
2009D1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5
1 0
1 1
3 0
5 0
2 1
3
0 0
1 0
3 0
9
1 0
2 0
3 0
4 0
5 0
2 1
7 1
8 1
9 1
Output
4
0
8
2009D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)