提交时间:2024-12-29 16:55:49
运行 ID: 3773
#include<bits/stdc++.h> using namespace std; int main() { int a = 2100000000,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; }