题解(AYWQ
2026-10-04 22:35:06
发布于:安徽
2阅读
0回复
0点赞
水几题放松一下
不务正业
#include<bits/stdc++.h>//像啥字
using namespace std;
bool ISTRI(int q, int w, int e) {
if (q + w > e && q + e > w && e + w > q)return 1;
return 0;
}
bool ISDY(int q, int w, int e) {
if (q == w || q == e || w == e)return 1;
return 0;
}
bool ISDB(int q, int w, int e) {
if (q == w && w == e)return 1;
return 0;
}
int main() {
int q, w, e;
cin >> q >> w >> e;
if (ISTRI(q, w, e)) {
if (ISDY(q, w, e)) {
if (ISDB(q, w, e)) {
cout << "aaa";
} else cout << "aab";
} else cout << "abc";
} else cout << "error";
return 0;
}
这里空空如也



有帮助,赞一个