QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#140897#5545. Contingency Plannew_dawn_2#WA 2ms6080kbC++174.3kb2023-08-16 22:39:022023-08-16 22:39:05

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 5872kb

input:

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

output:

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

result:

ok AC

Test #2:

score: 0
Accepted
time: 2ms
memory: 5892kb

input:

3
1 2
2 3

output:

-1

result:

ok AC

Test #3:

score: 0
Accepted
time: 2ms
memory: 5808kb

input:

2
2 1

output:

-1

result:

ok AC

Test #4:

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

input:

5
2 1
2 3
2 4
4 5

output:

1 5
1 3
2 5
1 4

result:

ok AC

Test #5:

score: -100
Wrong Answer
time: 2ms
memory: 6080kb

input:

5
1 4
3 4
4 5
2 5

output:

1 5
1 3
0 0
1 2

result:

wrong answer node is not in range [0, N-1]