当前位置:网站首页>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 .
边栏推荐
- Hexadecimal to decimal
- WeNet:面向工业落地的E2E语音识别工具
- Live broadcast preview | container service ack elasticity prediction best practice
- mxnet导入报各种libcudart*.so、 libcuda*.so找不到
- Network layer - forwarding (IP, ARP, DCHP, ICMP, network layer addressing, network address translation)
- 可观测|时序数据降采样在Prometheus实践复盘
- 10 programming habits that web developers should develop
- windows下Redis-cluster集群搭建
- 概率论与数理统计考试重点复习路线
- Ctfshow web entry code audit
猜你喜欢
解密函数计算异步任务能力之「任务的状态及生命周期管理」
NetSetMan pro (IP fast switching tool) official Chinese version v5.1.0 | computer IP switching software download
MacBook installation postgresql+postgis
2022-2028 global and Chinese video coding and transcoding Market Research Report
Mxnet imports various libcudarts * so、 libcuda*. So not found
Web开发人员应该养成的10个编程习惯
level17
mxnet导入报各种libcudart*.so、 libcuda*.so找不到
Technical tutorial: how to use easydss to push live streaming to qiniu cloud?
网络安全-记录web漏洞修复
随机推荐
A real day for Beijing programmers!!!!!
Construction d'un Cluster redis sous Windows
QT Bluetooth: a class for searching Bluetooth devices -- qbluetooth devicediscoveryagent
美国5G Open RAN再遭重大挫败,抗衡中国5G技术的图谋已告失败
Neural networks and deep learning Chapter 2: machine learning overview reading questions
[uniapp] system hot update implementation ideas
A application wakes up B should be a fast method
MacBook installation postgresql+postgis
level18
mxnet导入报各种libcudart*.so、 libcuda*.so找不到
OWASP top 10 vulnerability Guide (2021)
All in one 1413: determine base
Neural networks and deep learning Chapter 3: linear model reading questions
How to remove installed elpa package
Function (error prone)
Power management bus (pmbus)
web资源部署后navigator获取不到mediaDevices实例的解决方案(navigator.mediaDevices为undefined)
Live broadcast preview | container service ack elasticity prediction best practice
Burpsuite grabs app packets
Invalid bound statement (not found) in idea -- problem solving