http://acm.hdu.edu.cn/showproblem.php?pid=1721

非常有趣的一道水题,注意到相隔一个点的粒子数是可以相互转移的,所以只要判红点的和与蓝点的和是否相等

#include <cstdio>

int main(){
int A,B,C,D,E,F,G,H;
while(~scanf("%d",&A)){
if(A==-)break;
scanf("%d%d%d%d%d%d%d",&B,&C,&D,&E,&F,&G,&H);
if(A+C+F+H==B+D+E+G)puts("All the seeds can be cleared away!");
else puts("Sorry,it can't be cleared away!");
}
return ;
}

最新文章

  1. LeetCode - 120. Triangle
  2. tomacat启动慢
  3. RecyclerView和ScrollView嵌套使用
  4. 【crunch bang】论坛tint2配置讨论贴
  5. django TypeError: &#39;module&#39; object is not callable
  6. java Json字符串转List&lt;Map&gt;类型
  7. Piggy Back_KEY
  8. AngularJS - 依赖注入(Dependency Injection)
  9. scrapy 数据存储mysql
  10. python之文件操作(基础)
  11. select 自匹配问题
  12. sklearn.model_selection模块
  13. MySQL创建计算字段
  14. python操作符与流程控制
  15. Alpha Version Release Of Teamwork: Appendix 1 BUG BASH
  16. face alignment---各种算法框架
  17. R语言基本操作函数(1)变量的基本操作
  18. 目前.NET Core创建Windows Service比较好的一个开源框架:DasMulli.Win32.ServiceUtils
  19. 20155322 2016-2017-2 《Java程序设计》第7周学习总结
  20. SQL学习笔记三之MySQL表操作

热门文章

  1. 【转载】Gambit使用教程
  2. 一年成为Emacs高手(像神一样使用编辑器)
  3. js在mootools框架下的new Class
  4. Xmanager如何连接图形化界面
  5. wordpress 中禁止更新提示
  6. 使用ContentResolver添加数据、查询数据
  7. poj 3468 A Simple Problem with Integers 线段树第一次 + 讲解
  8. invalid types &#39;int[int]&#39; for array subscrip
  9. _x、__x、__x__含义与区别
  10. VMware Workstation 10.0.0.1295980 CN