自爆魂

博客园 首页 新随笔 联系 订阅 管理

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

确定是否矩形中点

这都能hack成功,无语

#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <queue>
#include <vector>
#include<set>
#include <iostream>
#include <algorithm>
using namespace std;
#define RD(x) scanf("%d",&x)
#define RD2(x,y) scanf("%d%d",&x,&y)
#define clr0(x) memset(x,0,sizeof(x))
typedef long long LL;
int x,y;
void work(int n,int m)
{
    RD2(x,y);
    if(x*2 == n && y*2 == m)
        puts("YES");
    else
        puts("NO");
    return;
}
int main() {
    int n,m;
    while(~RD2(n,m)){
        work(n,m);
    }
    return 0;
}


posted on 2014-10-13 21:56  自爆魂  阅读(93)  评论(0编辑  收藏  举报