cf/mirror

Collecting Coins

CF
1294A800· newbie2s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
5
5 3 2 8
100 101 102 105
3 2 1 100000000
10 20 15 14
101 101 101 3
Output
YES
YES
NO
NO
YES
1294A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)