QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#812023#8185. Emerging Treeqiuzx RE 5ms36740kbC++203.3kb2024-12-13 10:47:142024-12-13 10:47:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
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: 0ms
memory: 36420kb

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

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

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: 2ms
memory: 36572kb

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: 5ms
memory: 34504kb

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

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: 4ms
memory: 36604kb

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
Runtime Error

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:


result: