QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#874982#10000. Add, Remove, TransformZhaoZiLongRE 1ms3840kbC++172.6kb2025-01-28 23:13:012025-01-28 23:13:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6
1 2
2 3
3 4
4 5
5 6

output:

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

result:

ok ok nice tree :D

Test #2:

score: -100
Runtime Error

input:

100
4 44
45 44
33 44
60 44
71 44
25 44
69 44
57 44
16 44
78 44
17 44
10 44
21 44
80 44
2 44
98 44
20 44
83 44
3 44
79 44
22 44
65 44
5 44
39 44
23 44
100 44
66 44
7 44
14 44
81 44
6 44
41 44
59 44
87 44
32 44
63 44
74 44
84 44
86 44
18 44
24 44
96 4
35 44
8 44
62 44
58 44
85 44
53 44
82 44
42 44
12 ...

output:


result: