当前位置:网站首页>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 .
边栏推荐
- mxnet导入报各种libcudart*.so、 libcuda*.so找不到
- Seven join join queries of MySQL
- 函数(易错)
- C26451: arithmetic overflow: use the operator * on a 4-byte value, and then convert the result to an 8-byte value. To avoid overflow, cast the value to wide type before calling the operator * (io.2)
- Moco is not suitable for target detection? MsrA proposes object level comparative learning target detection pre training method SOCO! Performance SOTA! (NeurIPS 2021)...
- Kwai, Tiktok, video number, battle content payment
- Practice | mobile end practice
- [phantom engine UE] the difference between running and starting, and the analysis of common problems
- [thingsboard] how to replace the homepage logo
- Serpentine matrix
猜你喜欢

mysql的七种join连接查询

Fonction (sujette aux erreurs)

How to get the first few pieces of data of each group gracefully

电源管理总线 (PMBus)

10 programming habits that web developers should develop

QT Bluetooth: a class for searching Bluetooth devices -- qbluetooth devicediscoveryagent

自动语音识别(ASR)研究综述

Ctfshow web entry code audit
![[illusory engine UE] method to realize close-range rotation of operating objects under fuzzy background and pit recording](/img/11/b55f85ef9e1f22254218cb9083b823.png)
[illusory engine UE] method to realize close-range rotation of operating objects under fuzzy background and pit recording

Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
随机推荐
Neural networks and deep learning Chapter 4: feedforward neural networks reading questions
Sequence diagram of single sign on Certification Center
A real day for Beijing programmers!!!!!
10 programming habits that web developers should develop
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
Fuel consumption calculator
You Li takes you to talk about C language 7 (define constants and macros)
NetSetMan pro (IP fast switching tool) official Chinese version v5.1.0 | computer IP switching software download
[uniapp] system hot update implementation ideas
Raki's notes on reading paper: soft gazetteers for low resource named entity recognition
American 5g open ran suffered another major setback, and its attempt to counter China's 5g technology has failed
Convert Boolean to integer value PHP - Convert Boolean to integer value PHP
SPI read / write flash principle + complete code
Cookie learning diary 1
Key review route of probability theory and mathematical statistics examination
[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)
Moco is not suitable for target detection? MsrA proposes object level comparative learning target detection pre training method SOCO! Performance SOTA! (NeurIPS 2021)...
What are the building energy-saving software
首席信息官如何利用业务分析构建业务价值?
How to realize real-time audio and video chat function