Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
3762 | D班-罗炜翰 | 晶晶的补习班 | C++ | 通过 | 100 | 1 MS | 264 KB | 330 | 2024-12-29 16:49:57 |
#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; }