Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94772 杜洛雨泽 13求7个数的平均数 C++ Accepted 1 MS 276 KB 188 2024-10-26 13:13:28

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ int i=0; int s,sum=0,ave; while(i<7){ i++; cin>>s; sum=sum+s; } ave=sum/7; cout<<ave; return 0; }