#include
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
long long ans=1;
while(b>0)
{
if(b&1)
ans*=a%c;
a=a*a;
b>>=1;
}
cout<<ans%c;
return 0;
}
why my code not passing all test cases ?
plzz mnetion the test cases where my code failed