cf/mirror

Divan and a Store

CF
1614A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8
3 1 100 100
50 100 50
6 3 5 10
1 2 3 4 5 6
6 3 5 21
1 2 3 4 5 6
10 50 69 100
20 30 40 77 1 1 12 4 70 10000
3 50 80 30
20 60 70
10 2 7 100
2 2 2 2 2 7 7 7 7 7
4 1000000000 1000000000 1000000000
1000000000 1000000000 1000000000 1000000000
1 1 1 1
1
Output
2
2
3
0
0
10
1
1
1614A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)