1 条题解
-
0
Tabing010102 (tabing) LV 0 MOD @ 2019-10-27 20:21:16
std
#include <cstdio> int q, n, tot; int main() { scanf("%d", &q); while(q--) { tot = 0; scanf("%d", &n); int t; for(int i = 0; i < n; i++) { scanf("%d", &t); tot += t; } if(tot%n) printf("%d\n", tot/n+1); else printf("%d\n", tot/n); } return 0; }
- 1
信息
- ID
- 1008
- 难度
- 8
- 分类
- (无)
- 标签
- (无)
- 递交数
- 22
- 已通过
- 5
- 通过率
- 23%
- 上传者