Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3244 | 邓小龙 | 短信计费 | C++ | Accepted | 0 MS | 208 KB | 290 | 2024-04-24 00:19:03 |
#include<cstdio> #include<cmath> using namespace std; int main(){ int n,words; double expenses=0; scanf("%d",&n); for(int i=0,a;i<n;i++){ scanf("%d",&words); expenses+=ceil((words/70.0))*0.1; } printf("%.1lf",expenses); return 0; }