12 34
2024-01-31 20:19:02
发布于:四川
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c=0;#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c=0;
cin>>a>>b;
for(int i=a;i<=b;i++){
for(int j=2;j<=b-1;j++){
if(a%j0 and b%j0){
c++;
}
}
}
cout<<c;
return 0;
}
cin>>a>>b;
for(int i=a;i<=b;i++){
for(int j=2;j<=b-1;j++){
if(a%j==0 and b%j==0){
c++;
}
}
}
cout<<c;
return 0;
}
全部评论 1
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,s=1,i;
scanf("%d",&n);
for(i=1;i<=n;i++){
s*=i;
}
printf("%d",s);
return 0;
}2024-01-31 来自 四川
0#include<bits/stdc++.h> using namespace std; int main(){ int n,s=1,i; scanf("%d",&n); for(i=1;i<=n;i++){ s*=i; } printf("%d",s); return 0; }
2024-01-31 来自 四川
0
有帮助,赞一个