QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#812051#8185. Emerging Treeqiuzx WA 6ms36624kbC++203.4kb2024-12-13 11:06:102024-12-13 11:06:11

詳細信息

Test #1:

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

input:

4
3 1
1 4
1 2

output:

Yes
2 4 1 3 

result:

ok found a correct permutation

Test #2:

score: 0
Accepted
time: 6ms
memory: 36368kb

input:

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

output:

No

result:

ok desired permutation does not exist

Test #3:

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

input:

6
1 2
2 3
2 4
3 5
4 6

output:

No

result:

ok desired permutation does not exist

Test #4:

score: 0
Accepted
time: 4ms
memory: 36552kb

input:

6
2 3
2 5
2 1
2 6
5 4

output:

Yes
2 3 4 6 5 1 

result:

ok found a correct permutation

Test #5:

score: 0
Accepted
time: 4ms
memory: 34428kb

input:

6
6 1
6 3
3 4
3 2
4 5

output:

No

result:

ok desired permutation does not exist

Test #6:

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

input:

11
7 5
7 2
7 3
5 4
5 1
7 8
3 11
3 9
3 10
7 6

output:

Yes
2 6 7 3 4 11 5 1 9 10 8 

result:

ok found a correct permutation

Test #7:

score: 0
Accepted
time: 6ms
memory: 36544kb

input:

10
1 9
3 4
5 7
5 8
1 2
2 3
4 5
1 6
6 10

output:

Yes
1 3 4 5 6 9 7 8 2 10 

result:

ok found a correct permutation

Test #8:

score: 0
Accepted
time: 4ms
memory: 36624kb

input:

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

output:

Yes
1 5 2 6 3 4 7 

result:

ok found a correct permutation

Test #9:

score: 0
Accepted
time: 3ms
memory: 34504kb

input:

10
4 7
5 9
4 5
6 8
3 4
2 3
1 2
8 10
1 6

output:

Yes
1 2 3 4 6 8 5 9 7 10 

result:

ok found a correct permutation

Test #10:

score: -100
Wrong Answer
time: 4ms
memory: 15932kb

input:

134
27 60
41 112
41 117
86 97
40 41
99 107
41 47
124 130
37 124
40 54
75 121
67 75
40 99
76 86
50 56
40 63
18 40
16 67
50 73
18 43
93 131
79 105
13 69
53 98
71 79
67 74
13 16
26 28
27 31
69 71
13 66
46 118
29 46
31 123
50 53
66 110
19 58
3 18
38 95
115 132
26 50
55 126
3 13
31 115
93 101
14 26
37 52...

output:

72 129
20 21
4 48
37 83
100 108
30 104
4 29
9 94
9 30
17 72
6 17
11 62
36 122
33 37
20 36
21 120
64 114
23 24
23 65
49 100
30 51
2 11
2 4
4 111
6 20
22 106
32 57
1 9
24 32
12 33
6 23
4 12
3 61
1 6
1 3
1 77

result:

wrong answer invalid first token