当前位置:网站首页>Game improvement of smart people: Chapter 3 Lesson 3: find game
Game improvement of smart people: Chapter 3 Lesson 3: find game
2022-07-24 04:14:00 【Shining Sirius】
#include <cstdio>
using namespace std;
int main()
{
int p,q,i,k=0;
scanf ("%d%d",&p,&q);
for (i=1;p>0&&q>0;i++)
{
if(p%2==1&&q%2==1)
{
k++;
printf ("%d ",i);
}
p/=2;
q/=2;
}
if(k==0)
printf ("0\nClose");
else if(k>=2)
printf ("\nOpen");
else
printf ("\nClose");
return 0;
}边栏推荐
- An accident caused by MySQL misoperation, and "high availability" can't withstand it
- Preliminary use of swagger2
- [C language] program environment and preprocessing operation
- Leetcode 204. count prime number (2022.07.23)
- [novice] develop a tab component that is easy to expand by hand
- mysql服务1主2从,主主,MHA配置详细步骤
- Ship test / IMO a.799 (19) incombustibility test of marine structural materials
- 阿里淘系面试题:Redis 如何实现库存扣减操作和防止被超卖?
- Live video | 37 how to use starrocks to realize user portrait analysis in mobile games
- buu web
猜你喜欢

002_ Kubernetes installation configuration

An accident caused by MySQL misoperation, and "high availability" can't withstand it

buu web

Live broadcast preview | practice sharing of opengauss' autonomous operation and maintenance platform dbmind

MySQL service 1 master 2 slave, master master, MHA configuration detailed steps

Worthington hydroxysteroid dehydrogenase technical description and determination scheme

Prosci Lag3 antibody: improve in vitro research and help cancer immunotherapy

PostgreSQL source code learning (32) -- checkpoint ④ - core function createcheckpoint

Shell语法(一)

PAT甲级 1043 Is It a Binary Search Tree
随机推荐
Leetcode (Sword finger offer) - 11. Minimum number of rotation array
Pyth去初始化平均在很多机器学决策边界,始向总线上
LAN SDN hard core technology insider 20 Kang long regrets -- Specifications and restrictions (Part 1)
Ambire wallet opens twitter spaces series
What new opportunities exist in the short video local life section?
Ambire gas tank launches exclusive NFT launch
Remember an online sql deadlock accident: how to avoid deadlock?
Ship test / IMO a.799 (19) incombustibility test of marine structural materials
What is the product and expressiveness of 113700 Xingrui? Come and have a look
PAT甲级 1041 Be Unique
Worthington lysozyme technical description and literature reference
嵌入式系统移植【6】——uboot源码结构
Iqoo 10 series attacks originos original system to enhance mobile phone experience
Experiment 6 MPEG
What if Adobe pr2022 doesn't have open subtitles?
buu web
(5) Digital electricity formula simplification method
[translation] announce krius -- accelerate your monitoring and adoption of kubernetes
硬件知识3--IIC协议
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)