Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3169 孙浚轩 短信计费 C++ Accepted 0 MS 216 KB 290 2024-04-13 16:37:48

Tests(10/10):


Code:

#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; }