113 - Power of Cryptography

113

Accepted

View Problem

UVA Problem: 113 - Power of Cryptography
Time Limit: 3.00 Seconds
Program Language: C++
Publisher: http://www.uvaonlinejudge.org

♣ Try it Out ::
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cmath>
using namespace std;

int main()
{
    //freopen("113.in", "r", stdin);

    double n, p;
    while(cin>>n>>p)
        printf("%.0lf\n", pow(p,1/n));

    return(0);
}

♣ Source Codes ::

Popular posts from this blog

C++ :: Topological Sort Algorithm (using DFS)

How to Hack Facebook Account

C++ :: Strongly Connected Components Algorithm (SCC)