URAL 1877 Bicycle Codes 水题
2014-07-20 23:22
393 查看
题意: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;
}
//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;
}
相关文章推荐
- URAL 1877 Bicycle Codes
- URAL 1877 Bicycle Codes
- hdu 1877 又一版 A+B 水题
- Ural-1025. Democracy in Danger(水题)
- Ural-1083. Factorials!!!(水题)
- Sequence - URAL 1528 水题
- 【解题报告】 URAL 1192 Ball in a Dream -- 物理模拟水题
- URAL 1001 Reverse Root(水题)
- URAL - 1785,1293,1877,1409,1820,1787,1264,2012
- URAL1010 - Discrete Function - 水题
- URAL 1215. Exactness of Projectile Hit(水题,请绕行。。)
- ural 2068 - Game of Nuts 博弈水题
- URAL 1991 The battle near the swamp 水题
- ural 1014【水题,不过有点阴人】
- DFS水题 URAL 1152 False Mirrors
- Mnemonics and Palindromes 3 - URAL 1737 水题
- URAL 1023 Buttons(巴什博弈水题)
- 【URAL水题】集中题解区
- URAL 1902 Neo-Venice(水题)
- hdu 1877 Java 水题系列