cf/mirror

Yet Another Counting Problem

CF
1342C1600· expert3.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
2
4 6 5
1 1
1 3
1 5
1 7
1 9
7 10 2
7 8
100 200
Output
0 0 0 2 4
0 91
1342C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)