QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#569725#5545. Contingency PlanDennisTranWA 1ms6120kbC++202.9kb2024-09-17 09:32:372024-09-17 09:32:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 5944kb

input:

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

output:

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

result:

ok AC

Test #2:

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

input:

3
1 2
2 3

output:

-1

result:

ok AC

Test #3:

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

input:

2
2 1

output:

-1

result:

ok AC

Test #4:

score: 0
Accepted
time: 1ms
memory: 5956kb

input:

5
2 1
2 3
2 4
4 5

output:

5 1
5 3
2 5
4 1

result:

ok AC

Test #5:

score: -100
Wrong Answer
time: 1ms
memory: 6120kb

input:

5
1 4
3 4
4 5
2 5

output:

1 5
3 5
4 5
2 5

result:

wrong answer u and v already exists