hdu 2088 Box of Bricks
来源:互联网 发布:技嘉主板监控软件 编辑:程序博客网 时间:2024/05/16 01:32
代码:
#include<cstdio>using namespace std;int a[100];int main(){ int n; int s; int cnt=0; while(scanf("%d",&n)&&n) { if(cnt>0) printf("\n"); cnt++; s=0; for(int i=0;i<n;i++) { scanf("%d",&a[i]); s+=a[i]; } s/=n; int ans=0; for(int i=0;i<n;i++) { if(a[i]>s) { ans=ans+a[i]-s; } } printf("%d\n",ans); } return 0;}
0 1
- HDU 2088 Box of Bricks
- HDU 2088 Box of Bricks
- hdu 2088 Box of Bricks
- HDU#2088: Box of Bricks
- HDU 2088 Box of Bricks
- HDU - 2088 - Box of Bricks
- HDU Box of Bricks
- hdu 2088 Box of Bricks(water~)
- HDU—— 2088 Box of Bricks
- HDOJ(HDU) 2088 Box of Bricks(平均值)
- HDU ACM 11 2088 Box of Bricks
- Box of Bricks 2088
- 2088 Box of Bricks
- Box of Bricks 2088
- HDU 1326 Box of Bricks
- HDU 1326 Box of Bricks
- HDU 1326 Box of Bricks
- HDU 1326 Box of Bricks
- 香港抽血辨别性别收费
- 内蒙古去香港验血男孩
- 去香港抽血验男女条件
- 香港检查性别一般价格
- 香港验血查男女的手续
- hdu 2088 Box of Bricks
- 香港胎儿性别鉴定手续
- 哈尔滨去香港胎儿性别
- 关于eclipse工程转到androidstudio 的问题
- 7周香港性别鉴定价格
- 赴香港做性别鉴定价钱
- 在香港鉴定性别的流程
- 内地去香港查胎儿性别
- 去香港验胎儿性别流程