提交时间:2024-02-01 15:01:39

运行 ID: 39399

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