Posts

Showing posts with the label power mod power hackerrank

Challenge - #60 - Power-Mod Power

  # Enter your code here. Read input from STDIN. Print output to STDOUT a =  int ( input ()) b =  int ( input ()) m =  int ( input ()) print ( pow (a,b), pow (a,b,m),sep= "\n" )