#include <stdio.h> #include <math.h> int main(){ int n,m; int min_value; if (scanf("%d",&n)!=EOF){ // 计算150,分配给5,2,1,总数得是100 for (int i=0;i<n;i++){ if (scanf("%d",&m)!=EOF){ if (i==0){min_value=m;} if (m<min_value){min_value=m;} } } printf("min = %d",min_value); } else{ printf("input wrong"); } return 0; }