Commit 00b289e1 by BellCodeEditor

save project

parent 3dfc4cb4
Showing with 13 additions and 6 deletions
......@@ -7,11 +7,18 @@
# 如果偷回的宝石数是1-3颗,输出结果:可以全员出动,殊死一搏
# 如果偷回的宝石数是0颗,输出结果:没办法了,只能尝试呼叫惊奇队长
# 但是运行错误了,请你帮助悟空消灭bug!
#n= int(input())
#n=range(1,101)
num = []
for i in range(2, 101): #i=2
flag = 0
for j in range(1, i+1): #j (1,3) 1,2 for j in range(1,3)
if i % j == 0: #2%1==0
flag += 1
if flag == 2:
num.append(i)
print(num)
if stonenumber >= 4:
print('获得了打败灭霸的力量,反杀稳了')
elif 1<=stonenum <= 3:
print('可以全员出动,殊死一搏')
else:
print('没办法了,只能尝试呼叫惊奇队长')
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