Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
3759 | D班-罗炜翰 | 晶晶的补习班 | C++ | 解答错误 | 0 | 0 MS | 260 KB | 321 | 2024-12-29 16:47:04 |
#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; }