文章

35

粉丝

93

获赞

51

访问

13.0k

头像
默契考验 题解:
P1873 云南大学机试题
发布于2024年3月3日 16:16
阅读数 171

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	while(n--){
		int a,b,c;
		cin>>a>>b>>c;
		if(a==b&&b==c) cout<<"perfect"<<endl;
		else if(a*a+b*b==c*c||c*c+b*b==a*a||a*a+c*c==b*b) cout<<"good"<<endl;
		else cout<<"bad"<<endl;
	}
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发