Commit 2a56c616 by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 59 additions and 0 deletions
a,b,c,d,e=map(int,input().split())
a=a//3
b=b+a
e=e+a
b=b//3
a=a+b
c=c+b
c=c//3
b=b+c
d=d+c
d=d//3
c=c+d
e=e+d
e=e//3
a=a+e
d=d+e
print(a,b,c,d,e,end=" ")
"""
import math
a,b,c=map(int,input().split())
d=math.ceil(c/b)
if a>d:
print("剩下苹果:",a-d)
else:
print("剩余0个苹果")
"""
import turtle
b=turtle.Pen()
c=turtle.Pen()
for i in range(5):
b.forward(200)
b.left(144)
c.dot(30)
turtle.reset()
import random
num=0
while True:
a=input("我出拳:")
print("我出的拳是:"+a)
cq=["石头","剪刀","布"]
b=random.choice(cq)
print("计算机出拳:"+b)
if a in cq:
if a==b:
print("平局")
elif (a=="石头" and b=="剪刀") or (a=="剪刀" and b=="布") or (a=="布" and b=="石头"):
print("我赢了")
num=num+1
if num==3:
break
else:
print("计算机赢了")
else:
print("输入错误")
\ No newline at end of file
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