#include<bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
int z=((a%c)*(b%c))%c;
cout<<z;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
int z=((a%c)*(b%c))%c;
cout<<z;
return 0;
}
both are not working
yeah if u r trying to compute it direclty then it will not work.
u need to use modular exponenetiation technique .
how to use that modular exponentation
can you explain lin 13
@adarshsingh2k
line 13 is
y=y/2
that y=y>>1 is just another way of writing it ( u will learn in ur bit manipulation playlist)
ohh thanks for resolving