| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146111 | 任艺宸 | 短信计费 | C++ | Runtime Error | 0 MS | 272 KB | 572 | 2026-01-26 10:45:45 |
#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 z(int x) { int sum=0; if(x<=70)sum++; else { if(x%70==0)sum+=x/70; else sum+=x/70+1; } return sum; } int main(){ int n,a[101]={ }; float s=0; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; s+=z(a[i]); } printf("%.1f",s/10); return 0; }
*** stack smashing detected ***: ./Main terminated