Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
5885 | huangyunkai | 同余方程(Day 2) | C++ | Wrong Answer | 617 MS | 240 KB | 207 | 2023-01-18 16:27:38 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; for(int i=1;;i++) if(a*i%b==1){ cout<<i; return 0; } return 0; }