您的位置:首页 > 其它

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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: