cf/mirror

Subtract Min Sort

CF
2060D1100· newbie2s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1
Input
5
5
1 2 3 4 5
4
4 3 2 1
4
4 5 2 3
8
4 5 4 5 4 5 4 5
9
9 9 8 2 4 4 3 5 3
Output
YES
NO
YES
YES
NO
2060D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)