cf/mirror

Predominant Frequency Division

CF
2242B1000· newbie2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
10
8
2 1 1 3 3 1 2 3
7
2 1 3 3 3 2 3
4
1 3 3 2
6
2 2 2 1 1 1
8
3 2 1 2 1 1 2 3
3
2 1 2
3
1 2 3
5
1 3 3 1 1
5
1 1 3 3 1
3
1 3 1
Output
YES
NO
NO
NO
YES
NO
YES
YES
YES
NO
2242B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)