Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7450 | 张文曦 | 短信计费 | C++ | Wrong Answer | 0 MS | 256 KB | 536 | 2025-04-26 15:42:52 |
#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; double fee(int m){ int money=0; while(m>0){ m=m-70; money+=0.1; } return money; } int main(){ int n,num; double t=0; cin>>n; for(int i=1;i<=n;i++){ cin>>num; t+=fee(num); } printf("%.1lf",t); return 0; }
------Input------
10 57 4 502 1146 298 630 1181 1158 819 558
------Answer-----
9.5
------Your output-----
0.0