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

时间:2023-03-09 04:35:53
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=; for(int i=;i<=k;i++){
int x,y;
cin>>x>>y;
if(x<=||x>=n-||y<=||y>=m-){ok=;}
}
if(ok)cout<<"NO"<<endl;
else cout<<"YES"<<endl;
}