cf/mirror

Equal LCM Subsets

CF
1656H3200· legendary gm10s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
3 4
5 6 7
2 8 9 10
4 4
5 6 7 8
2 3 4 9
1 3
1
1 2 3
5 6
3 4 9 7 8
2 15 11 14 20 12
Output
NO
YES
1 2
6
2 3
YES
1 1
1
1
YES
3 2
3 7 4
12 14
1656H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)