QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#812014#8185. Emerging Treeqiuzx WA 4ms38480kbC++203.3kb2024-12-13 10:44:322024-12-13 10:44:40

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 36556kb

input:

4
3 1
1 4
1 2

output:

Yes
3 1 4 2 

result:

ok found a correct permutation

Test #2:

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

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

input:

6
1 2
2 3
2 4
3 5
4 6

output:

No

result:

ok desired permutation does not exist

Test #4:

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

input:

6
2 3
2 5
2 1
2 6
5 4

output:

Yes
6 1 2 3 5 4 

result:

wrong answer invalid permutation