#include <stdio.h> int main() { int n = 0; float score[100] = { 0 }; //输入 scanf("%d", &n); float max = 0; float min = 100; float sum = 0; for (int i = 0; i < n; i++) { scanf("%f", &score[i]); sum += score[i]; if (score[i] > max) { max = score[i]; } if (score[i] < min) { min = score[i]; } } //输出 printf("%.2f %.2f %.2f\n", max, min, sum / n); return 0; }