cf/mirror

Equal Multisets (Easy Version)

CF
2211C11300· pupil2s256 MB⌨ stdin/stdout

Examples

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