求调,必回关
查看原帖
求调,必回关
1612267
xgby楼主2025/6/16 12:54
#include<bits/stdc++.h>
using namespace std;

int main(){
    int t;
    cin>>t;
    int a[t];
    for(int i=0;i<t;i++){
		cin>>a[i];
	}for(int i=0;i<t;i++){
		int b=0;
		for(int j=0;j<=100000000;j++){
			b++;
        }if(b*b*b*b==a[i]){
			cout<<b<<endl;
		}else{
			cout<<"-1"<<endl;
		}
    }
    return 0;
}


2025/6/16 12:54
加载中...