| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146114 | 陈骏睿 | 短信计费 | C++ | Runtime Error | 0 MS | 268 KB | 572 | 2026-01-26 10:50:33 |
#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 l(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=1;i<=n;i++){ cin>>a[i]; s+=l(a[i])*0.1; } cout<<s<<endl; return 0; }
*** stack smashing detected ***: ./Main terminated