AC第2、4点,怎么搞
查看原帖
AC第2、4点,怎么搞
37539
_Qer楼主2017/5/19 13:07
0. #include<cstdlib>
0. #include<cstdio>
0. #include<iostream>
0. using namespace std;
0. int main(){
0. long long x,y,p,q,tmp=0;
0. cin>>x>>y;
0. p=x;
0. q=y;
0. for(;p<=y;++p){
0. for(;q>=x;--q){
0. if(p%x==0&&q%p==0&&y%p==0&&y%q==0){
0. ++tmp;
0. }
0. }
0. }
0. cout<<tmp;
0. system("pause");
0. return 0;
0. }
2017/5/19 13:07
加载中...