标签:
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { int n,i; while(~scanf("%d",&n)) { int t,ag,sum=0; for(i=0;i<n;i++) { scanf("%d",&t); sum+=t; } printf("%d %d\n",sum,sum/n); } return 0; }
标签:
原文地址:http://www.cnblogs.com/cancangood/p/4354405.html