Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119843 | 杨登博 | 短信计费 | C++ | Accepted | 1 MS | 272 KB | 621 | 2025-05-19 21:10:24 |
#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; int a(int x){ int num=0; if(x>70){ if(x%70!=0) num+=x/70+1; else num+=x/70; } else num++; return num; } int main(){ int m=0,n,x; double f; cin>>n; for(int i=1;i<=n;i++){ cin>>x; m+=a(x); } f=m; printf("%.1lf\n",f/10); return 0; }