Night Diamond - Working Background

UVa 113 - Power of Cryptography

Problem link: 113 - Power of Cryptography

  /**********************************************************************\   
  |*********S*** ****** ************ ************* *************** ******|   
  |*********** ******** ************  ************ ************ ** ******|   
  |********* ********** *********** ** *********** * ********* *** ******|   
  |******** *********** *I******** **** ********** *** ***** ***** ******|   
  |******** *********** ********* ****** ********* ***** ** ****** ******|   
  |********** ********* ******** ***A**** ******** ******* ******* ******|   
  |*********** ******** ******* ********** ******* *************** ******|   
  |********** ********* ****** ************ ****** *************** ******|   
  |******** *********** ***** ************** ***** ********M****** ******|   
  |***** ************** **** **************** **** *************** ******|   
  |**********************************************************************|   
  |**************BSMRSTU********************************CSE**************|   
  \**********************************************************************/   
  #include<stdio.h>   
  #include<string.h>   
  #include<math.h>   
  #include<conio.h>   
  #include<stdlib.h>   
  #define ll long long   
  #define B break   
  #define C continue   
  #define sf scanf   
  #define pf printf   
  #define byebye return 0  
 int main()  
 {  
   double k,p,n;  
   while(sf("%lf%lf",&p,&n)==2)  
   {  
     k=pow(n,1/p);  
     pf("%.0lf\n",k);  
   }  
   byebye;  
 }  

Pastebin link: Here

0 comments:

Post a Comment