msiamn

UVa 113 - Power of Cryptography

May 19th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.45 KB | None | 0 0
  1. /***********************************************************************\  
  2.  |*********S***  ****** ************* ************ **************  ******|  
  3.  |***********  ******** ************  ************  *********** ** ******|  
  4.  |*********  ********** *********** *** ********** * ********* *** ******|  
  5.  |********  *********** *I******** **** ********** *** ***** ***** ******|  
  6.  |********  *********** ********* ****** ********* ***** ** ****** ******|  
  7.  |**********  ********* ******** ***A**** ******** ******* ******* ******|  
  8.  |***********  ******** ******* ********** ******* *************** ******|  
  9.  |**********  ********* ****** ************ ****** *************** ******|  
  10.  |********  *********** ***** ************** ***** ********M****** ******|  
  11.  |*****  ************** **** **************** **** *************** ******|  
  12.  |***********************************************************************|  
  13.  |**************BSMRSTU********************************CSE***************|  
  14.  \***********************************************************************/  
  15.  #include<stdio.h>  
  16.  #include<string.h>  
  17.  #include<math.h>  
  18.  #include<conio.h>  
  19.  #include<stdlib.h>  
  20.  #define ll long long  
  21.  #define B break  
  22.  #define C continue  
  23.  #define sf scanf  
  24.  #define pf printf  
  25.  #define byebye return 0
  26. int main()
  27. {
  28.     double k,p,n;
  29.     while(sf("%lf%lf",&p,&n)==2)
  30.     {
  31.  
  32.         k=pow(n,1/p);
  33.         pf("%.0lf\n",k);
  34.     }
  35.     byebye;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment