pycharm上全过,为什么提交一串紫?呜呜
查看原帖
pycharm上全过,为什么提交一串紫?呜呜
663801
shizhongxuan楼主2022/3/28 15:31
str=input().split()
a,b,c=int(str[0]),int(str[1]),int(str[2])
str=input()
if b>a:
    a,b=b,a
if c>a:
    a,c=c,a
if c>b:
    b,c=c,b
dict={}
dict['A']=c
dict['B']=b
dict['C']=a
for i in str:
    print(dict[i],end=' ')
2022/3/28 15:31
加载中...