70分求diao
查看原帖
70分求diao
1046511
__ok__楼主2023/8/10 16:21

代码70分求diao(其他全TLE)

#include<bits/stdc++.h>
using namespace std;
long long int a,b,x=0,c;
int main(){
	cin>>a>>b;
	while((a*x)%b!=1){
		x++;
	}
	cout<<x;
	return 0;
}
2023/8/10 16:21
加载中...