#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll fast(ll a,ll b)
{
ll ans=1;
while(b>0)
{
ll last=b&1;
if(last)
{
ans=ansa;
}
a=aa;
b=b>>1;
}
return ans;
}
int32_t main()
{
ll a,b,c;
cin>>a>>b>>c;
ll m=(fast(a,b))%c;
cout<<m;
return 0;
}
Why only 4 cases are passing
Hello @suhaib0900 this is your correct code: https://ide.codingblocks.com/s/425797
and please be in habbit of sharing your code by saving it on ide.codingblocks.com
Sure. Will do. No one told me about it.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.