当前位置:网站首页>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 .
边栏推荐
- 直播预告 | 容器服务 ACK 弹性预测最佳实践
- CSDN正文自动生成目录
- How to remove installed elpa package
- Pointer function (basic)
- A應用喚醒B應該快速方法
- The development of mobile IM based on TCP still needs to keep the heartbeat alive
- File upload bypass summary (upload labs 21 customs clearance tutorial attached)
- Raki's notes on reading paper: soft gazetteers for low resource named entity recognition
- 蛇形矩阵
- [uniapp] system hot update implementation ideas
猜你喜欢

A solution to the problem that variables cannot change dynamically when debugging in keil5

假设检验——《概率论与数理统计》第八章学习笔记

Common features of ES6
![[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)

level18

【科普】热设计基础知识:5G光器件之散热分析

American 5g open ran suffered another major setback, and its attempt to counter China's 5g technology has failed

Official announcement! The third cloud native programming challenge is officially launched!

Fuel consumption calculator

Matplotlib draws three-dimensional scatter and surface graphs
随机推荐
Function (error prone)
How to realize real-time audio and video chat function
Power management bus (pmbus)
Setting up redis cluster cluster under Windows
官宣!第三届云原生编程挑战赛正式启动!
Sequence diagram of single sign on Certification Center
The scale of computing power in China ranks second in the world: computing is leaping forward in Intelligent Computing
[thingsboard] how to replace the homepage logo
2022-2028 global and Chinese equipment as a Service Market Research Report
You Li takes you to talk about C language 7 (define constants and macros)
A real day for Beijing programmers!!!!!
Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
[uniapp] system hot update implementation ideas
Construction d'un Cluster redis sous Windows
Longyuan war "epidemic" 2021 network security competition web easyjaba
Study notes 7
Practice | mobile end practice
Decimal to hexadecimal
Machine learning -- neural network
Kwai, Tiktok, video number, battle content payment