文章
21
粉丝
76
获赞
1
访问
13.2k
#include<stdio.h>
int getGCD(int a,int b);
int doLCM(int *array,int size);
int main(void){
int count;
int a[10] = {0};
while(scanf("%d",&count) !=EOF){
if(count>0 && count<=10){
for(int i = 0;i<count;i++){
scanf("%d",&a[i]);
}
int result = doLCM(a,count);
printf("%d\n",result);
}else{
return 0;
}
&...
登录后发布评论
暂无评论,来抢沙发