Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74389 邓嘉瑶 18统计成绩 C++ Wrong Answer 0 MS 272 KB 401 2024-05-25 10:40:23

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n,sum=0; cin>>n; int a[n] ; for(int i=0; i<n; i++) { cin>>a[i]; sum+=a[i]; } cout<<sum<<" "; double b=1.0*sum/n; printf("%.2lf ",b); int mx=-2e9,ml=2e9; for(int i=0; i<n; i++) { if(a[i]>=mx) { mx=a[i]; } cout<<mx<<" "; if(a[i]<=ml) { ml=a[i]; } } cout<<ml<<" "; return 0; }


Run Info:

------Input------
94 37 11 50 6 13 53 47 64 49 29 92 32 59 66 49 36 81 35 4 81 41 1 85 54 13 77 95 58 15 70 80 34 38 42 2 90 17 23 5 36 53 93 52 6 4 46 39 76 33 62 26 74 60 20 28 71 81 56 97 61 8 3 17 21 92 22 69 39 98 57 77 31 76 34 92 19 91 12 23 75 86 31 73 39 15 59 8 86 27 75 70 69 32 94
------Answer-----
4528 48.17 98 1
------Your output-----
4528 48.17 37 37 50 50 50 53 53 64 64 64 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 97 97 97 97 97 97 97 97 97 97 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 1