CodeForces 55 C.Pie or die(博弈论)
来源:互联网 发布:it学什么好 编辑:程序博客网 时间:2024/06/07 17:41
Description
一个
Input
第一行三个整数
Output
如果
Sample Input
2 2 1
1 2
Sample Output
Solution
只要
Code
#include<cstdio>using namespace std;int main(){ int n,m,k,x,y; while(~scanf("%d%d%d",&n,&m,&k)) { int flag=0; while(k--) { scanf("%d%d",&x,&y); if(x<=5||x>=n-4||y<=5||y>=m-4)flag=1; } printf("%s\n",flag?"YES":"NO"); } return 0;}
阅读全文
0 0
- CodeForces 55 C.Pie or die(博弈论)
- CodeForces 55 C. Pie or die
- codeforces 55c pie or die
- cf 55c Pie or die
- #51 C. Pie or die (博弈)
- Pie or die(欧拉函数,求最大公约数)
- CodeForces 299 C.Weird Game(博弈论)
- Codeforces 603C 博弈论 + 关于博弈论理解
- codeforces-9A-A. Die Roll ( C && GCD )
- PHP OR Die 语句
- PHP OR Die 语句
- php or die()
- CodeForces 630 R. Game(博弈论)
- CodeForces 9A Die Roll(简单题)
- Get Rich or Die Trying
- 博弈论 —— The Game of Parity ( CodeForces 549C )
- CodeForces 151C Win or Freeze(简单题)
- Pie Rules CodeForces
- css3常用动画大全:translate、scale、opacity、rotate
- 概率期望 LightOJ-1038
- 编号转换(百度2016实习生真题)--java
- Mybatis中的resultType和resultMap
- Spring 学习时遇到的错误:java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$Reflectio
- CodeForces 55 C.Pie or die(博弈论)
- 状态模式
- 轻松理解 Android Binder,只需要读这一篇
- UVA 1449 Dominating Patterns(AC自动机)
- lower_bound()返回值
- Intelligent Parking Building
- 周记(中)
- 5.Algorithm Gossip: 老鼠走迷官(一)
- CSDN-20170831