主页 讨论版 问题 名次 状态 统计

请自觉遵守比赛规则,违者严惩,不接受求情!

问题 D: The most orz man

问题 D: The most orz man

时间限制:1000 ms 内存限制:128 MB
提交:224 解决:79
[ 提交][ 状态][ 讨论版]

题目描述

Bibig wants to know is he the most orz man in the lab.So he asked his wife.She thought for a while, and she decide to

play a game with bibig.If bibig wins ,he is the most orz man in the lab.Here are the rules:
1.There are n(0<=n<=1e9) orzers in the lab initially.
2.Everyone takes turns to get q(03.q must be a power of 2.
4.If it's your turn and there is no orzer ,you lose.
5.Bibig always takes out firstly.
Bibig is buzy with orzing.Please tell him is he the most orz man in the lab.

输入

There are multiple cases.The number of cases is no more than 1e6.
For each case,give a number n.

输出

If he is the most orz man in the lab,print "Yes".In other cases, print

"No".

样例输入

0 1

样例输出

No Yes

提示

[ 提交][ 状态][ 讨论版]
Baidu
map