python

P1055 [NOIP2008 普及组] ISBN 号码

FragileIsYourLie @ 2025-01-07 19:06:20

x = list(map(int,input().split()))
x.sort()
s = input()
if s=='ABC':
    print(x[0],x[1],x[2])
elif s=='ACB':
    print(x[0],x[2],x[1])
elif s=="BAC":
    print(x[1],x[0],x[2])
elif s=="BCA":
    print(x[1],x[2],x[0])
elif s=="CAB":
    print(x[2],x[0],x[1])
else:
    print(x[2],x[1],x[0])

都这样了为啥还不能过


by xk2013 @ 2025-01-07 19:23:45

@FragileIsYourLie 你这给我干哪题来了?


by FragileIsYourLie @ 2025-01-07 19:34:13

我勒个豆,抱歉啊orz


|