2656240095zxl @ 2024-10-10 19:00:36
s=list(map(int,input().split()))
d=input()
s1=sorted(s,reverse=False)
a=['A','B','C']
b=dict(zip(a,s1))
for letter in d:
print(b.get(letter), end=' ')
by 2656240095zxl @ 2024-10-10 19:35:45
换了另一种方法AC了,但我不明白为什么这段代码不可以