import java.util.*;
import java.lang.Math;
public class Main {
public static void main(String args[]) {
// Your Code Here
Scanner sc=new Scanner(System.in);
int T=sc.nextInt();
while(T>0){
long n=sc.nextLong();
int k=sc.nextInt();
kthroot(n,k);
T–;
}
}
public static void kthroot(long n, int k){
int x=(int)Math.pow(n,(1.0/k));
System.out.println(x);
}
}
Getting wrong answer for 1 test case
Please look at it as soon as possible 
Hey @Rajput.apry
code is fine Just a change
in Kthroot fun
int x = (int) Math.pow(n, (float)(1.0 / k));
instead of
int x=(int)Math.pow(n,(1.0/k));