Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32882 | chenyanda | 同余方程(Day 2) | C++ | Wrong Answer | 653 MS | 240 KB | 156 | 2023-12-03 14:34:04 |
#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; for(int i=0;i<b;i++){ if(a*i%b==1){ cout<<i; break; } } }