#include <iostream>
using namespace std;
int a[5],min1,yu;
int max1,flag,num;
int main(){
for(int i=1;i<=4;i++){
cin>>a[i];
if(a[i]>max1) max1=a[i];
}
cin>>min1>>yu;
for(int i=1;i<=4;i++)
if(max1-a[i]>yu||a[i]<min1){
flag=i;
num++;
}
if(num==0) cout<<"Normal";
else if(num==1) cout<<"Warning: please check #"<<flag<<"!";
else cout<<"Warning: please check all the tires!";
return 0;
}
PTA L1-69.胎压监测
最新推荐文章于 2024-08-28 23:27:41 发布