Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3165 孙浚轩 短信计费 C++ Accepted 0 MS 276 KB 292 2024-04-12 23:01:37

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,words[1500]; double expenses=0; scanf("%d",&n); for(int i=0,a;i<n;i++){ scanf("%d",&words[i]); expenses+=ceil((words[i]/70.0))*0.1; } printf("%.1lf",expenses); return 0; }