Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3151 | 邓程允 | 短信计费 | C++ | Wrong Answer | 0 MS | 272 KB | 310 | 2024-04-06 18:06:39 |
# include<iostream> using namespace std; int a(int n){ int b=0; while(n>0){ b++; n-=70; } return b; } int main(){ int n,m[1501],x=0; cin>>n; for(int i=1;i<=n;i++){ cin>>m[i]; x+=a(m[i]); } cout<<x*0.1<<endl; return 0; }
------Input------
50 174 1230 252 457 675 421 157 80 912 1104 556 591 1107 494 1280 1321 1391 945 898 851 510 1175 29 1362 249 834 149 131 1353 345 1373 1095 278 1240 110 256 1068 468 1456 1168 689 647 398 1460 1226 1442 694 196 829 1315
------Answer-----
57.0
------Your output-----
57