QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#242416#5545. Contingency PlanZhaoZiLongWA 3ms37040kbC++201.9kb2023-11-07 13:24:252023-11-07 13:24:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

ok AC

Test #2:

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

input:

3
1 2
2 3

output:

-1

result:

ok AC

Test #3:

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

input:

2
2 1

output:

-1

result:

ok AC

Test #4:

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

input:

5
2 1
2 3
2 4
4 5

output:

1 4
3 5
2 5
5 1

result:

ok AC

Test #5:

score: -100
Wrong Answer
time: 3ms
memory: 37040kb

input:

5
1 4
3 4
4 5
2 5

output:

1 3
3 2
5 3
2 4

result:

wrong answer cycle detected