Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
92010 孙嘉言 短信计费 C++ Accepted 1 MS 280 KB 299 2024-09-27 20:53:27

Tests(10/10):


Code:

#include <iostream> using namespace std; int sb(int x){ if(x%70==0) return x/70; else return x/70+1; } int main(){ int n,a[1501]; double s=0; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; s+=sb(a[i]); }printf("%.1lf\n",s/10.0); return 0; }