cf/mirror

Equalize Prices

CF
1183B900· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
4
5 1
1 1 2 3 1
4 2
6 4 8 5
2 2
1 6
3 5
5 2 5
Output
2
6
-1
7
1183B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)