Bajardi: No’monov Murodjon 712-19 guruh talabasi
Shu alifboo boyicha shifrlandi
topish g algoritmi c++ da
#include
#include
using namespace std;
int main(){
int n,p,m=1,a[1000];
cin>>n>>p;
for(int i=1;i
m=n*m;
m=m%p;
a[i]=m;
// cout<}
for(int i=0;i
for(int j=i+1;j
if(a[i]==a[j]){
cout<}
}
}
main();
}
Do'stlaringiz bilan baham: |