当前位置:网站首页>English topic assignment (26)
English topic assignment (26)
2022-07-05 04:30:00 【m0_ sixty-five million seven hundred and eighty-eight thousand 】
The original title is :
Lowest Bit
1000ms 32768K
describe :
Given an positive integer A (1 <= A <= 100), output the lowest bit of A.
For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2.
Another example goes like this: given A = 88, we can write A in binary form as 1011000, so the lowest bit of A is 1000, so the output should be 8.
Input :
Each line of input contains only an integer A (1 <= A <= 100). A line containing "0" indicates the end of input, and this line is not a part of the input data.
Output :
For each A in the input, output a line containing only its lowest bit.
The sample input :
26 88 0
Sample output :
2 8
( link :Lowest Bit | JXNUOJ)
translate :
Its lowest
A positive integer is known A(1<=A<=100), Output A The lowest point of .
for example , Integers A=26, We can write A Binary number of 11010, all A The lowest bit of is 10, Output should output 2.
Another similar example is :A=88, We can write A Binary number of 1011000, all A The lowest bit of is 1000, All outputs 8.
Input :
Each line includes an integer A(1<=A<=100). A line is entered as 0 Then it means that the input ends , also 0 Not as input data .
Output :
For each input A, Output its lowest bit on one line .
边栏推荐
猜你喜欢
![[phantom engine UE] only six steps are needed to realize the deployment of ue5 pixel stream and avoid detours! (the principles of 4.26 and 4.27 are similar)](/img/eb/a93630aff7545c6c3b71dcc9f5aa61.png)
[phantom engine UE] only six steps are needed to realize the deployment of ue5 pixel stream and avoid detours! (the principles of 4.26 and 4.27 are similar)

【虚幻引擎UE】实现测绘三脚架展开动画制作

Realize the attention function of the article in the applet

Raki's notes on reading paper: soft gazetteers for low resource named entity recognition

File upload bypass summary (upload labs 21 customs clearance tutorial attached)

2022-2028 global and Chinese equipment as a Service Market Research Report

Threejs Internet of things, 3D visualization of farm (III) model display, track controller setting, model moving along the route, model adding frame, custom style display label, click the model to obt

Label exchange experiment

How can CIOs use business analysis to build business value?

首席信息官如何利用业务分析构建业务价值?
随机推荐
Cookie learning diary 1
Sword finger offer 04 Search in two-dimensional array
【thingsboard】替换首页logo的方法
Fonction (sujette aux erreurs)
防护电路中的元器件
windows下Redis-cluster集群搭建
概率论与数理统计考试重点复习路线
Uncover the seven quirky brain circuits necessary for technology leaders
Managed service network: application architecture evolution in the cloud native Era
A real day for Beijing programmers!!!!!
This is an age of uncertainty
Introduction to RT thread kernel (5) -- memory management
[untitled]
windows下Redis-cluster集群搭建
Advanced length of redis -- deletion strategy, master-slave replication, sentinel mode
【虚幻引擎UE】实现UE5像素流部署仅需六步操作少走弯路!(4.26和4.27原理类似)
How to force activerecord to reload a class- How do I force ActiveRecord to reload a class?
【虚幻引擎UE】实现背景模糊下近景旋转操作物体的方法及踩坑记录
Learning MVVM notes (1)
[popular science] basic knowledge of thermal design: heat dissipation analysis of 5g optical devices