Commit d0476674 by BellCodeEditor

auto save

parent 560bb087
m = int(input("请输入药品总数"))
n = int(input("请输入取药人数"))
a = input("请输入取药量")
a = a.split(" ")
num = 0
for i in range(n):
if int(a[i])>m:
num = num+1
else:
m=m-int(a[i])
print(num)
\ No newline at end of file
for i in range(100,1000):
su = True
for j in range(2,i):
if i % j == 0:
su = False
if i%10 == i//100 and su:
print(i)
\ No newline at end of file
n = int(input("请输入组数"))
x = input("请输入鸡尾酒疗法总病例数以及有效病例数")
x = x.split(",")
x1 = int(x[1])/int(x[0])
print(x)
for i in range(n-1):
y = input("请输入改进疗法总病例数以及有效病例数")
y = y.split(",")
y1 = int(y[1])/int(y[0])
if y1-x1 > 0.05:
print("better")
elif (x1-y1 > 0.05):
print("worse")
else :
print("same")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment