UVA 113

Don't copy without trying.

#include<bits/stdc++.h>
using namespace std;

int main()
{
    double a,b,c=0;
    while(cin>>a>>b)
    {
        c=pow(b,1.0/a);
        printf("%.0f\n",c);
        c=0;
    }
    return 0;

}

Comments

Popular posts from this blog

C++ STL practice problem link

Binary Index Tree(BIT)

Combinatorics