Tàu điện không đổi chuyến

View as PDF

Submit solution


Points: 0.01 (partial)
Time limit: 2.0s
Memory limit: 512M
Input: stdin
Output: stdout

Authors:
Problem type

In case the statement didn't load correctly, you can download the statement here: Statement

Sample Input

8 5 6
1 2
1 3
2 4
2 5
3 6
6 7
6 8
4 5
4 7
8 3
2 6
1 5
2 5
1 6
4 7
5 7
6 8
4 8

Sample Output

YES
YES
YES
NO
YES
NO


Loading...