뒤풀이
Time Limit: 1 SecMemory Limit: 1024 MiB
Example Input 1
3 3
2 1 2
2 2 3
2 1 3
Example Output 1
Yes
Example Input 2
4 2
3 1 2 4
3 2 3 4
Example Output 2
No
© 2023-2025. All rights reserved.
Powered by @Rn
logo