cf/mirror

Equate Multisets

CF
1702F1700· expert4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
4
2 4 5 24
1 4 6 11
3
1 4 17
4 5 31
5
4 7 10 13 14
2 14 14 26 42
5
2 2 4 4 4
28 46 62 71 98
6
1 2 10 16 64 80
20 43 60 74 85 99
Output
YES
NO
YES
YES
YES
1702F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)