cf/mirror

Counting Pairs

CF
2051D1200· pupil2s256 MB⌨ stdin/stdout

Examples

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