Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
4241 | D班-苏莉雯 | 短信计费 | C++ | 解答错误 | 0 | 1 MS | 264 KB | 243 | 2025-01-05 17:04:21 |
#include<bits/stdc++.h> using namespace std; int main() { double a,n,c=0,b=0; for(int i;i<=11;i++) { cin>>n; if(n<=70) { a+=0.1; } else { c=n/70; a+=c*0.1; } } cout<<setprecision(1)<<fixed<<a; }