Count Pairs
1188B2300· international master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 3 00 1 2
Output
1
Sample 2of 2
Input
6 7 21 2 3 4 5 6
Output
3
58%
1188B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 3 00 1 2
1
6 7 21 2 3 4 5 6
3