HDU 1721
2024-09-28 16:51:58
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 ;
}
最新文章
- LeetCode - 120. Triangle
- tomacat启动慢
- RecyclerView和ScrollView嵌套使用
- 【crunch bang】论坛tint2配置讨论贴
- django TypeError: &#39;module&#39; object is not callable
- java Json字符串转List<;Map>;类型
- Piggy Back_KEY
- AngularJS - 依赖注入(Dependency Injection)
- scrapy 数据存储mysql
- python之文件操作(基础)
- select 自匹配问题
- sklearn.model_selection模块
- MySQL创建计算字段
- python操作符与流程控制
- Alpha Version Release Of Teamwork: Appendix 1 BUG BASH
- face alignment---各种算法框架
- R语言基本操作函数(1)变量的基本操作
- 目前.NET Core创建Windows Service比较好的一个开源框架:DasMulli.Win32.ServiceUtils
- 20155322 2016-2017-2 《Java程序设计》第7周学习总结
- SQL学习笔记三之MySQL表操作
热门文章
- 【转载】Gambit使用教程
- 一年成为Emacs高手(像神一样使用编辑器)
- js在mootools框架下的new Class
- Xmanager如何连接图形化界面
- wordpress 中禁止更新提示
- 使用ContentResolver添加数据、查询数据
- poj 3468 A Simple Problem with Integers 线段树第一次 + 讲解
- invalid types &#39;int[int]&#39; for array subscrip
- _x、__x、__x__含义与区别
- VMware Workstation 10.0.0.1295980 CN