Untitled
unknown
python
4 years ago
619 B
9
Indexable
D = 5
n = 4
a = [1, 7, 2, 2]
d = [1, 3, 2, 2]
t = [0, 0, 0, 0]
S = 0
def checkVaccine(D):
if n == 0 and S > 0:
print("No-instance")
return
i = 0
amin = []
for e in a:
amin.append(round(e*t[i]))
i += 1
i = 0
for e in amin:
D -= e*d[i]
if D < 0:
print("No-instance")
return
i += 1
if D > 0:
# INSERT CODE
# INSERT CODE
# INSERT CODE
return
if D > S:
print("No3-instance")
else:
print("Yes3-instance")
checkVaccine(D)
Editor is loading...