QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#80311#5064. DFS OrderQAQQWQ#TL 4ms29052kbC++14912b2023-02-23 14:07:292023-02-23 14:07:30

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 29052kb

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
Time Limit Exceeded

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:

1 1
11 100000
12 100000
17 99998
18 99999
10 99998
10 99999
22 100000
14 100000
10 99995
14 99999
13 99998
10 99981
12 99998
10 99998
12 100000
10 100000
15 100000
17 99999
17 99995
11 100000
19 99997
15 99999
13 99991
8 99999
13 100000
21 99993
11 99993
16 100000
16 100000
12 100000
14 99974
10 999...

result: