提交时间:2023-10-25 11:47:34
运行 ID: 29247
#include <stdio.h> int main(void) { int n, i; int tmp; int sum; while (scanf("%d", &n) != EOF) { sum = 0; for(i=0; i<n; i++) { scanf("%d", &tmp); sum += tmp; } printf("%.2f\n", (float)sum/n); } return 0; }