HDU 5054Alice and Bob
来源:互联网 发布:windws10固态硬盘优化 编辑:程序博客网 时间:2024/05/01 19:18
傻了,显然在xy必须在矩形中间才能相遇
#include<iostream>#include<cstdio>#include<set>#include<string>#include<string.h>#include<cstring>#include<vector>#include<map>#include<queue>#include<stack>#include<cctype>#include<algorithm>#include<sstream>#include<utility>#include<cmath>#include<functional>#define mt(a) memset(a,0,sizeof (a))#define fl(a,b,c) fill(a,b,c)#define SWAP(a,b,t) (t=a,a=b,b=t)#define inf 1000000000+7using namespace std;typedef long long ll;int main(){int x, y, a, b;while (cin >> x >> y >> a >> b){int xx, yy, aa, bb;xx = a; yy = b;aa = x - a;bb = y - b;if (xx == aa&&yy == bb)printf("YES\n");else printf("NO\n");}return 0;}
0 0
- HDU 5054 Alice and Bob
- HDU-#5054 Alice and Bob
- hdu 5054 Alice and Bob
- HDU 5054 Alice and Bob
- HDU 5054Alice and Bob
- Alice and Bob HDU
- HDU 5054 Alice and Bob(数学)
- HDU 5054 Alice and Bob 数学
- hdu 5054 Alice and Bob(水题)
- hdu 4371 Alice and Bob
- HDU 4371 Alice and Bob
- HDU 4371 Alice And Bob
- HDU 4111--Alice and Bob
- HDU 4268 - Alice and Bob
- hdu 4268 Alice and Bob
- hdu 4268 Alice and Bob
- hdu - 4268 - Alice and Bob
- HDU 4268 Alice and Bob
- 匈牙利算法
- linux c 编程模板总结(二)
- java多线程系列01——多线程基础
- MATLAB对文件进行批量重命名
- 关于编程中遇到inf的情况
- HDU 5054Alice and Bob
- nyoj119 士兵杀敌(三) (线段树,两个value)
- Spring进阶之路(4)-容器中Bean作用域与集合类型配置
- Android应用程序性能优化
- Java服务器热部署的实现原理——java类的加载方式
- 内存管理
- HDU 5055Bob and math problem(构造)
- 利用VS2013编译C语言程序
- 求最大连续bit数