1
2023-08-16 09:18:09
发布于:河北
2阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
bool e = true, f = true, g = true, h = true;
int a, b, c, d;
int m, k;
cin >> a >> b >> c >> d;
cin >> m >> k;
if(a - m > k) e = false;
if(b - m > k) f = false;
if(c - m > k) g = false;
if(d - m > k) h = false;
if((e == false) && (f == false) && (g == true) && (h == true))
cout << "Warning:1 and 2" << endl;
else if((g == false) && (h == false) && (e == true) && (f == true))
cout << "Warning:3 and 4" << endl;
else if((e == true) && (f == true) && (g == true) && (h == true))
cout << "let's go" << endl;
else cout << "Warining:Emergency landing!" << endl;
}
这里空空如也
有帮助,赞一个