[蓝桥杯][2013年第四届真题]买不到的数目
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
int res = (n*m) / __gcd(n,m);
cout<<res - (n+m)<<endl;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
int res = (n*m) / __gcd(n,m);
cout<<res - (n+m)<<endl;
return 0;
}
相关推荐
程序员花海:实习和校招简历正确格式应该是教育背景+实习+项目经历+个人评价 其中项目经历注意要体现业务 实习经历里面的业务更是要自圆其说 简历模板尽可能保持干净整洁 不要太花哨的