Cod sursa(job #2605617)
| Utilizator | Data | 25 aprilie 2020 15:49:26 | |
|---|---|---|---|
| Problema | Invers modular | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.24 kb |
#include <iostream>
using namespace std;
int main()
{
int a = 0;
int n = 0;
cin >> a >> n;
for(int b = 1; b < b + 1; b++){
if((a*b)%n==1){
cout << b;
return 0;
}
}
}
