CodeForces 246BB. Increase and Decrease【思维】
来源:互联网 发布:知乎 hiv携带者 编辑:程序博客网 时间:2024/05/21 16:21
只要能想明白,那么这道题就是大水......
按图中给出的操作方式,只要能整除,肯定是可以平均分开的.....
否则就把多于的放在一个数上...强势背锅....
/*http://blog.csdn.net/liuke19950717*/#include<cstdio>int main(){int n;while(~scanf("%d",&n)){int sum=0;for(int i=0;i<n;++i){int tp;scanf("%d",&tp);sum+=tp;}int ans=n;if(sum%n){ans=n-1;}printf("%d\n",ans);}return 0;}
0 0
- CodeForces 246BB. Increase and Decrease【思维】
- Increase and Decrease--codeForces 246B
- CodeForces 246B: Increase and Decrease【水】
- Codeforces 246B Increase and Decrease 【数学】
- Codeforces 246B-Increase and Decrease【模拟】
- CodeForces 246B Increase and Decrease
- Codeforces 246B Increase and Decrease
- 【Codeforces 246B Increase and Decrease 】
- CodeForces - 246B Increase and Decrease (模拟)水
- B. Increase and Decrease
- Increase and Decrease
- Increase and Decrease
- CF - 246 - B. Increase and Decrease(贪心)
- Java Date decrease or increase
- CUIT ACM Personal Training 11.27(FM)G - Increase and Decrease
- Codeforces 466D Increase Sequence【思维】好题~
- 【CODEFORCES】 D. Increase Sequence
- Maximum Increase CodeForces
- Screen的使用
- UVA 1475 - Jungle Outpost(二分 + 半平面交)
- 16 pointFixLike
- 拓扑排序
- CRM
- CodeForces 246BB. Increase and Decrease【思维】
- 发布一款原创JavaScript模板引擎插件(将html模板快速渲染成数据对应的HTML片段的工具)
- 关于python的self
- python后端开发视频教程学习笔记
- hibernate实现双向一对多的映射
- 周易六十四卦——大畜卦
- caffe学习笔记(7):get the deploy.prototxt
- [NOIP2005][CODEVS1106]篝火晚会(模拟+数学相关)
- C++实验6—矩阵求和