当前位置:网站首页>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 .
边栏推荐
- Fuel consumption calculator
- 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
- Seven join join queries of MySQL
- 2022-2028 global and Chinese virtual data storage Market Research Report
- Neural networks and deep learning Chapter 3: linear model reading questions
- Introduction to RT thread kernel (5) -- memory management
- A real day for Beijing programmers!!!!!
- Ctfshow 2022 Spring Festival welcome (detailed commentary)
- Hexadecimal to decimal
- 托管式服务网络:云原生时代的应用体系架构进化
猜你喜欢
[finebi] the process of making custom maps using finebi
Discussion on the dimension of confrontation subspace
Aperçu en direct | Services de conteneurs ACK flexible Prediction Best Practices
蛇形矩阵
Fuel consumption calculator
NetSetMan pro (IP fast switching tool) official Chinese version v5.1.0 | computer IP switching software download
Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
【科普】热设计基础知识:5G光器件之散热分析
Moco is not suitable for target detection? MsrA proposes object level comparative learning target detection pre training method SOCO! Performance SOTA! (NeurIPS 2021)...
Looking back on 2021, looking forward to 2022 | a year between CSDN and me
随机推荐
The development of mobile IM based on TCP still needs to keep the heartbeat alive
windows下Redis-cluster集群搭建
Practice | mobile end practice
Convert Boolean to integer value PHP - Convert Boolean to integer value PHP
PR video clip (project packaging)
假设检验——《概率论与数理统计》第八章学习笔记
Neural networks and deep learning Chapter 2: machine learning overview reading questions
web资源部署后navigator获取不到mediaDevices实例的解决方案(navigator.mediaDevices为undefined)
Ctfshow web entry code audit
2022-2028 global and Chinese FPGA prototype system Market Research Report
线上故障突突突?如何紧急诊断、排查与恢复
Moco is not suitable for target detection? MsrA proposes object level comparative learning target detection pre training method SOCO! Performance SOTA! (NeurIPS 2021)...
Longyuan war "epidemic" 2021 network security competition web easyjaba
Network layer - forwarding (IP, ARP, DCHP, ICMP, network layer addressing, network address translation)
电源管理总线 (PMBus)
level18
【虛幻引擎UE】實現UE5像素流部署僅需六步操作少走彎路!(4.26和4.27原理類似)
托管式服务网络:云原生时代的应用体系架构进化
美国5G Open RAN再遭重大挫败,抗衡中国5G技术的图谋已告失败
Key review route of probability theory and mathematical statistics examination