编程开头
#define LOCAK
.
.
头文件下方
#ifdef
freopen("data.in","r",stdin);
freopen("data.out","w",stdout);
#endif
#define LOCAL
#include<stdio.h>
#define INF 100000000
int main (){
#ifdef LOCAL
freopen ("data.in","r",stdin);
freopen("data.out","w",stdout);
#endif
int x,n,min=INF,max=-INF,s=0;
while(scanf("%d",&x)==1){
s+=x;
if(x<min){
min=x;
}if(x>max){
max=x;
}
n++;
}
printf("%d %d,%.3f\n",min,max,(double)s/n);
return 0;
}