Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
39396 jiabokai 短信计费 C++ 通过 1 MS 256 KB 311 2024-02-01 15:00:24

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { double sum=0; int n; cin>>n; while(n--){ int m; cin>>m; if(m<=70){ sum+=0.1; }else{ if(m%70==0){ sum+=0.1*(m/70); }else{ sum+=0.1*(m/70)+0.1; } } } cout<<fixed<<setprecision(1)<<sum; return 0; }


测评信息: