QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#698179#5545. Contingency PlanGuanYunchangWA 0ms3628kbC++173.6kb2024-11-01 17:59:512024-11-01 17:59:51

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3576kb

input:

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

output:

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

result:

ok AC

Test #2:

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

input:

3
1 2
2 3

output:

-1

result:

ok AC

Test #3:

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

input:

2
2 1

output:

-1

result:

ok AC

Test #4:

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

input:

5
2 1
2 3
2 4
4 5

output:

1 3
3 4
4 1
5 2

result:

wrong answer cycle detected