Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
47779 teacher_lu 做统计 C++ 解答错误 1 MS 244 KB 429 2024-05-21 19:28:35

Tests(0/1):


#include <iostream> using namespace std; int main() { int maxNum = 0, minNum = 0x3f3f3f3f, sum = 0, x; for (int i = 0; i < 10; ++i) { cin >> x; sum += x; if (x > maxNum) { maxNum = x; } if (x < minNum) { minNum = x; } } cout << maxNum << ", " << minNum << ", " << sum / 10.0 << endl; return 0; }


测评信息: