提交时间:2024-12-29 16:47:04
运行 ID: 3759
#include<bits/stdc++.h> using namespace std; int main() { int a = 1,b = 0,c = 6,d; float e = 0; while (c + 1) { cin>>d; e += d; if (a > d) { a = d; } else if (b < d) { b = d; } c--; } cout<<setprecision(1)<<fixed<<e / 7.0; cout<<" "<<b; cout<<" "<<a; return 0; }