Kth Root: How to take input of such a large number?

Since 1<=N<=10^15 . Maximum input can be 10^5, even if I take input in string, I have to convert it in decimal value to find N/2. Please suugest how to process for input larger than 10^9.

Use “long long int” data type . A long long int variable can hold values as large as 10^18. That should easily hold the max possible value for N.

Thanks sir. It helped.