Answer the question
In order to leave comments, you need to log in
What's wrong with if?
A I have 8, b 3, c 6
import sys
d=75
a,b,c=sys.stdin.read().split()
if a or b or c == 3:
d+=10
if a or b or c == 6:
d-=40
if a or b or c == 8:
d-=10
if a or b or c == 2:
d-=35
if a or b or c == 1:
d+=25
if a or b or c == 4:
d-=25
if a or b or c == 5:
d+=15
if a or b or c == 7:
d-=5
print(d)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question