提交时间:2026-01-11 20:16:28
运行 ID: 82401
#include<bits/stdc++.h> using namespace std; int main(){ long long a,b; cin>>a>>b; for(long long x=1;x>=1;++x){ if((a*x)%b==1){ cout<<x; break; } } return 0; }