Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159714 张晓冉 短信计费 C++ Runtime Error 1 MS 280 KB 401 2026-09-06 14:52:13

Tests(2/10):


Code:

#include<bits/stdc++.h> using namespace std; double p(int n,int a[]){ double s = 0; for(int i = 0;i < n;i++){ int tiao = (a[i] + 69)/70; s = s+tiao*0.1; } return s; } int main(){ int n; cin>>n; int a[1000]; for(int i = 0;i < n;i++){ cin>>a[i]; } double m = p(n,a); cout<<fixed<<setprecision(1)<<m; return 0; }


Run Info:

Runtime Error:Segmentation fault