Array Partition
1454F2100· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
6111 2 3 3 3 4 4 3 4 2 182 9 1 7 3 9 4 192 1 4 2 4 3 3 1 274 2 1 1 4 1 451 1 1 1 174 3 4 3 3 3 4
Output
YES6 1 4NOYES2 5 2YES4 1 2YES1 1 3YES2 1 4
58%
1454F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)