cf/mirror

Yet Another Problem About Pairs Satisfying an Inequality

CF
1703F1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
8
1 1 2 3 8 2 1 4
2
1 2
10
0 2 1 6 3 4 1 2 8 3
2
1 1000000000
3
0 1000000000 2
Output
3
0
10
0
1
1703F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)