Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78280 梁敖铭 做统计 C++ Wrong Answer 1 MS 272 KB 341 2024-06-16 20:47:00

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int min,max,sum=0,temp; cin>>temp; sum=min=max=temp; for(int i=0;i<9;i++){ cin>>temp; min=min<temp?min:temp; max=max>temp?max:temp; sum+=temp; } cout<<max<<","<<min<<","; printf("%.2f",sum/10.0); return 0; }


Run Info:

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