Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7444 | 黄宜洋 | 短信计费 | C++ | Wrong Answer | 1 MS | 272 KB | 497 | 2025-04-26 15:29:47 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; double money=0; int n,a[1501],c=0; int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; for(int i=1;i<=n;i++){ if(a[i]>70) c=c+a[i]/70; } money=0.1*n+0.1*c; printf("%.1lf",money); return 0; }
------Input------
10 57 4 502 1146 298 630 1181 1158 819 558
------Answer-----
9.5
------Your output-----
9.6