PTA L1-069:胎压监测 (python)

  • Post author:
  • Post category:python




一、题目要求

在这里插入图片描述

在这里插入图片描述



二、参考代码
s=[int(i) for i in input().split()]
c=0
for i in range(4):
    if s[i]<s[4] or (max(s)-s[i])>s[5]:
        c+=1
        t=i
if c==0:
    print('Normal')
elif c==1:
    print('Warning: please check #%d!'%(t+1))
else:
    print('Warning: please check all the tires!')



版权声明:本文为weixin_48062951原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。