0分,求助
查看原帖
0分,求助
1008290
menkeming楼主2023/8/21 16:49
#include<bits/stdc++.h>
using namespace std;
int n,w,h,x;
int main(){
	cin>>n>>w>>h;
	while(n--){
		cin>>x;
		if(x<=sqrt(w*w+h*h)) cout<<"DA";
		else cout<<"NE";
	}
}
2023/8/21 16:49
加载中...