QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#787157#6421. Degree of Spanning TreeHuangHanShengWA 174ms12276kbC++201.8kb2024-11-27 10:09:132024-11-27 10:09:14

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 12276kb

input:

2
6 9
1 2
1 3
1 4
2 3
2 4
3 4
4 5
4 6
4 6
3 4
1 3
2 3
3 3
1 2

output:

Yes
1 2
1 3
1 4
4 5
4 6
No

result:

ok 2 cases

Test #2:

score: -100
Wrong Answer
time: 174ms
memory: 12172kb

input:

11140
10 15
9 6
5 7
6 5
2 3
7 5
7 5
3 10
9 7
5 5
9 1
7 5
2 8
7 5
4 3
6 2
9 19
3 7
3 9
2 8
2 8
3 6
5 1
1 8
8 9
8 3
4 8
5 5
3 1
4 3
1 3
8 6
1 3
7 4
4 3
8 8
12 20
10 2
5 5
2 4
3 3
3 3
5 11
9 2
5 5
7 12
11 3
3 3
3 5
5 3
3 1
4 6
7 11
6 8
4 5
6 12
6 5
8 18
4 2
4 3
2 4
2 4
4 3
4 8
2 2
6 7
2 4
6 2
1 4
8 7
4...

output:

Yes
6 9
5 7
5 6
2 3
3 10
1 9
2 8
3 4
2 6
Yes
3 7
3 9
2 8
3 6
1 5
1 8
8 9
4 8
Yes
2 10
2 4
5 11
2 9
7 12
3 11
1 3
4 6
7 11
6 8
4 5
Yes
2 4
3 4
4 8
6 7
2 6
1 4
5 7
Yes
5 6
5 7
5 9
3 4
2 9
2 3
7 8
1 5
Yes
2 10
2 6
2 3
1 9
8 10
4 6
1 6
2 5
1 7
Yes
5 7
4 5
1 7
2 6
6 7
1 3
3 4
2 3
Yes
3 12
1 13
7 8
2 8
6 ...

result:

wrong answer Line "3 4" doesn't correspond to pattern "Yes|No"