Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92886 | 宋镓扬 | 13求7个数的平均数 | C++ | Accepted | 1 MS | 276 KB | 164 | 2024-10-06 17:40:26 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; int ans=0; for(int i=1;i<=7;i++) { cin>>n; ans+=n; } cout<<ans/7; return 0; }