CodeForces - 55C Pie or die 想法题(猜程序)

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;
}

 

posted @ 2018-03-12 07:32  SuuTTT  阅读(183)  评论(0编辑  收藏  举报