Test case not passed

sir my output is coming acc to sample output but test case is not passing https://ide.codingblocks.com/s/126202

            long n=scan.nextLong();
            float k=scan.nextInt();
            
            int n1=(int)Math.pow(n,1/k);
            System.out.println(n1);

just make these small changes…see if k is 6(and of type double) then 1/k will be 1.16666666 but it needs to be rounded of by making it of type float 1/k will round to 1.16667(some value like this)…

also you need to solve this ques using binary search

there you will not experience problems of data conversion

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.