题目
思路;
根据条件判断输入的情况,输出对应的语句即可
代码
T,K=map(int,input().split())
for i in range(K):
if T==0:
print('Game Over.')
break
n1,b,t,n2=map(int,input().split())
if t>T:
print('Not enough tokens. Total = {}.'.format(T))
elif(n1>n2 and b==0):
T=T+t
print('Win {}! Total = {}.'.format(t,T))
elif (n1<n2 and b==1):
T=T+t
print('Win {}! Total = {}.'.format(t,T))
else:
T=T-t
print('Lose {}. Total = {}.'.format(t,T))