-
Bio
#include #include using namespace std; int func(int a){ return sqrt(sqrt(a))==int(sqrt(sqrt(a))); } int main(){ int n; cin>>n; for(int i=0;i<n;++i){ int a; cin>>a; if(func(a)) cout<<sqrt(sqrt(a))<<" "; else cout<<"-1"<<" "; } }
-
Recent Activities