QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#812049#8185. Emerging Treeqiuzx WA 4ms36596kbC++203.4kb2024-12-13 11:05:282024-12-13 11:05:29

詳細信息

Test #1:

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

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: 0ms
memory: 36412kb

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: 36344kb

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: 3ms
memory: 34628kb

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: 0ms
memory: 36420kb

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: 3ms
memory: 34560kb

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: 3ms
memory: 36596kb

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: 3ms
memory: 34540kb

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: 0ms
memory: 36552kb

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: 15880kb

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:

34 93
34 38
7 55
5 7
59 80
3 34
24 25
26 91
52 85
10 14
5 8
76 113
76 81
10 27
10 82
44 70
19 76
15 49
25 102
89 127
39 87
29 90
125 134
5 35
119 133
3 68
127 128
37 103
39 116
7 19
44 119
64 88
44 125
20 78
4 89
35 39
4 5
17 42
1 2
25 109
17 59
5 44
12 22
24 64
65 96
6 92
5 10
59 84
32 45
4 15
72 1...

result:

wrong answer invalid first token