Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78322 王馨桐 做统计 C++ Wrong Answer 0 MS 276 KB 273 2024-06-18 17:53:51

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int lt=-2e9,tz,l=2e9; double sum=0; for(int i=1; i<=10; i++) { cin >>tz; if(tz>lt) { lt=tz; } if(tz<l) { l=tz; } sum+=tz; } printf("%d,%d,%.1lf",lt,l,sum/tz); return 0; }


Run Info:

------Input------
25 3 30 58 94 94 58 6 22 62
------Answer-----
94,3,45.2
------Your output-----
94,3,7.3