python求助,一直WA

B3720 [语言月赛202303] Out for Dinner B

Shangdaokun123456 @ 2024-04-29 23:39:21

x=input();
x=int(x);
a,b=input();
if a+b is'AB'or'BA'or'BB':
    print=(x*0.8);
elif a+b is'BC'or'CB':
    print=(x*0.6);
elif a+b is'AC'or'CA'or'CC':
    print=(x*0.7);
else:
    print(x)

O.o


by XuYueming @ 2024-04-30 10:12:14

@Shangdaokun123456

  1. is 比较字符串
  2. 奇怪的条件
  3. print=

|