奇怪?
2025-05-01 09:36:28
发布于:浙江
8阅读
0回复
0点赞
注意“NO”中“O”是数字“0”!(我错了好几回)
#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
cin >> n;
while(n--){
int a,b,c,d;
cin >> a >> b >> c >> d;
if(a == b && b == c && c == d){
cout << "YES" << endl;
} else if(a == b){
if(c == d){
cout << "YES" << endl;
} else {
cout << "N0" << endl;
}
} else if(a == c){
if(b == d){
cout << "YES" << endl;
} else {
cout << "N0" << endl;
}
} else if(a == d){
if(b == c){
cout << "YES" << endl;
} else {
cout << "N0" << endl;
}
} else {
cout << "N0" << endl;
}
}
return 0;
}
这里空空如也
有帮助,赞一个