cf/mirror

Fishingprince Plays With Array

CF
1696C1400· specialist2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
5 2
1 2 2 4 2
4
1 4 4 2
6 2
1 2 2 8 2 2
2
1 16
8 3
3 3 3 3 3 3 3 3
4
6 6 6 6
8 3
3 9 6 3 12 12 36 12
16
9 3 2 2 2 3 4 12 4 12 4 12 4 12 4 4
8 3
3 9 6 3 12 12 36 12
7
12 2 4 3 4 12 56
Output
Yes
Yes
No
Yes
No
1696C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)