#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t–){
long long int n,k;
cin>>n>>k;
double p=1.0/k;
long long int ans=pow(n,p);
cout<<ans<<endl;
}
}
Fails for one test case, compiler displays message output truncated. I cannot figure out what it is failing on.
Thank You