QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#242460#5545. Contingency PlanZhangYiDeWA 4ms38088kbC++201.7kb2023-11-07 14:13:342023-11-07 14:13:53

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 38088kb

input:

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

output:

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

result:

ok AC

Test #2:

score: 0
Accepted
time: 3ms
memory: 28688kb

input:

3
1 2
2 3

output:

-1

result:

ok AC

Test #3:

score: 0
Accepted
time: 0ms
memory: 28656kb

input:

2
2 1

output:

-1

result:

ok AC

Test #4:

score: 0
Accepted
time: 3ms
memory: 36776kb

input:

5
2 1
2 3
2 4
4 5

output:

5 1
5 3
5 2
4 2

result:

ok AC

Test #5:

score: 0
Accepted
time: 0ms
memory: 37624kb

input:

5
1 4
3 4
4 5
2 5

output:

2 1
2 3
2 4
5 4

result:

ok AC

Test #6:

score: -100
Wrong Answer
time: 0ms
memory: 37684kb

input:

5
5 2
1 2
4 2
3 4

output:

3 5
3 1
3 2
4 2

result:

wrong answer u and v already exists