#include<iostream>
#include <cmath>
using namespace std;
int main()
{
int a,b,c,x;
cin>>a>>b>>c;
if( a>=0 && a<pow( 2,31 ) && b>=0 && b<pow( 2,63 ) && c>=1 && c<=9439 )
{
x=pow( a,b );
cout<<x % c<<endl;
}
return 0;
}
歡迎光臨 竹園論壇 (http://forum.tfcis.org/) | Powered by Discuz! X3.2 |