标签:source 输入 ever tom malloc auth out author mode
#include<stdio.h> #include<malloc.h> int main() { int n=0; int flag; int i,j; while(scanf("%d",&n)!=EOF) { int *a=(int *)malloc(sizeof(int)*n); for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=a[n-1];;i++) { flag=1; for(j=0;j<n;j++) { if(i%a[j]!=0) { flag=0; break; } } if(flag==1) break; } printf("%d\n",i); } }
HDoj 2028 Lowest Common Multiple Plus
标签:source 输入 ever tom malloc auth out author mode
原文地址:https://www.cnblogs.com/wzmm/p/12586736.html