QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#242739#5545. Contingency PlanHuangHanShengRE 1ms12808kbC++171.9kb2023-11-07 16:44:072023-11-07 16:44:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

ok AC

Test #2:

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

input:

3
1 2
2 3

output:

-1

result:

ok AC

Test #3:

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

input:

2
2 1

output:

-1

result:

ok AC

Test #4:

score: -100
Runtime Error

input:

5
2 1
2 3
2 4
4 5

output:


result: