http://codeforces.com/problemset/problem/55/C
题意:一个博弈。
题解:瞎猜,目前不清楚原理
#include<iostream> #include<stdio.h> #include<algorithm> using namespace std; typedef long long ll; int main(){ int n,m,k; cin>>n>>m>>k; int ok=1; for(int i=1;i<=k;i++){ int x,y; cin>>x>>y; if(x<=5||x>=n-4||y<=5||y>=m-4){ok=0;} } if(ok)cout<<"NO"<<endl; else cout<<"YES"<<endl; }