Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115496 | 罗子童 | 短信计费 | C++ | Runtime Error | 1 MS | 272 KB | 543 | 2025-03-30 19:35:59 |
#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 main(){ int n,a[101]; double s=0; cin>>n; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<=n;i++){ if(a[i]%70==0){ s+=a[i]/70*0.1; } else{ s+=(a[i]/70+1)*0.1; } } cout<<s; return 0; }
*** stack smashing detected ***: ./Main terminated