QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505915#5064. DFS OrderHuangHanShengRE 0ms4228kbC++20825b2024-08-05 13:29:222024-08-05 13:29:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
4
1 2
2 3
3 4
5
1 2
2 3
2 4
1 5

output:

1 1
2 2
3 3
4 4
1 1
2 3
3 5
3 5
2 5

result:

ok 18 numbers

Test #2:

score: -100
Runtime Error

input:

10
100000
72823 55259
62351 52308
92651 3592
51367 76912
79245 19657
42249 51964
79361 189
27637 93873
81277 28980
74091 19175
36499 5372
4007 43408
80222 240
58323 89130
7186 75148
68314 35801
714 47923
93849 84391
67266 14569
33233 68208
4770 53070
57228 93090
80479 13476
78786 23062
27420 80196
1...

output:


result: