URAL 1877Bicycle Codes 水题
来源:互联网 发布:数据库数据模型有几种 编辑:程序博客网 时间:2024/06/06 19:58
题意:A有两把锁,第一天用第一把锁,第二天用第二把锁,第三天用第一把锁,有个小偷想偷东西。每次都从0000开始,第一天0000,第二天0001,第三天0002。问这个小偷能否偷到东西。
//author: CHC//First Edit Time:2014-07-18 12:20//Last Edit Time:2014-07-18 12:20#include <iostream>#include <cstdio>#include <cstring>#include <cmath>#include <set>#include <vector>#include <map>#include <queue>#include <set>#include <algorithm>using namespace std;int s1,s2;int main(){ while(~scanf("%d%d",&s1,&s2)){ if(s1%2==0||s2%2==1)puts("yes"); else puts("no"); } return 0;}
0 0
- URAL 1877Bicycle Codes 水题
- URAL 1877 Bicycle Codes
- URAL 1877. Bicycle Codes
- Bicycle
- Bicycle Race
- Bicycle Race
- Bicycle Race
- codes
- codes
- codes
- A. Bicycle Chain
- Ural-1068. Sum(水题)
- Ural-1083. Factorials!!!(水题)
- URAL - 1123 Salary(水题)
- Sequence - URAL 1528 水题
- URAL - 1821 Biathlon(水题)
- URAL
- 【ural】
- linux 启动失败--Stopping System V runlevel compatibility-
- 字符串-05. 字符串循环左移(20)
- easyrec推荐系统系列之安装篇
- url编码问题
- egit链接
- URAL 1877Bicycle Codes 水题
- 归并排序
- java的运行原理
- PHP进阶
- URAL 1878Rubinchik's Cube 水题
- 二分图相关题
- Unity3d网络游戏Socket通讯
- 初识网页设计
- UVA 10689 - Yet another Number Sequence(矩阵快速幂)