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