cf/mirror

Divide and Equalize

CF
1881D1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7
5
100 2 50 10 1
3
1 1 1
4
8 2 4 2
4
30 50 27 20
2
75 40
2
4 4
3
2 3 1
Output
YES
YES
NO
YES
NO
YES
NO
1881D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)