Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
33476 | chenyanda | 同余方程(Day 2) | C++ | Time Limit Exceeded | 1000 MS | 232 KB | 157 | 2023-12-09 16:08:26 |
#include<iostream> using namespace std; int main() { long a,b; cin>>a>>b; for(int i=0;i<b;i++){ if(a*i%b==1){ cout<<i; break; } } }