必过
2025-10-25 18:43:34
发布于:江苏
16阅读
0回复
0点赞
dfhttyu7gbhg
fgefriyrnvf
crhjfgkvg
gtrrtbohkwh
hi6t8049wt,gfbh
hbffff9x 64831fd2gh45g1d5h45h4df5g4dfg42dfg1dg4df6h4fgj
rg56fd5fh6rtuu[kd54j5gu[]69t-7
全部评论 3
#include <bits/stdc++.h>
using namespace std;int main(){
int n, x;
bool flag;
cin >> n;
while(n--){
cin >> x;
flag = false;
for(int i = 1; i <= x; i++){
for(int j = 1; j <= x; j++){
if(i * i + j * j == x){
flag = true;
break;
}
}
}
if(flag) cout << "Yes" << endl;
else cout << "No" << endl;
}return 0;}
2天前 来自 江苏
0?
1周前 来自 北京
0?
2025-11-12 来自 浙江
0
















有帮助,赞一个