这是我的代码:
num = dict(zip(['A', 'B', 'C'], sorted(list((input().split(' ')))))) result = [] for key in input(): result.append(num[key]) print(' '.join(result))
问题如上。