题解
2025-05-03 09:11:17
发布于:浙江
20阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>a;
for(int i=1;i<=a;i++){
d=0;
cin>>b;
for(int u=1;u<=b;u++){
c=uuu*u;
if(cb){
cout<<u<<endl;
d++;
break;
}
}
if(d0){
cout<<"-1"<<endl;
}
}
return 0;
}
这里空空如也
有帮助,赞一个