CTZ
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Problem Statement
For a positive integer , let be the (maximal) number of consecutive zeros at the end of the binary notation of . If the binary notation of ends with a , then .
You are given a positive integer . Print .
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
N
Output
Print .
2024
3
is 11111101000 in binary, with three consecutive 0s from the end, so .
Thus, print .
18
1
is 10010 in binary, so .
Note that we count the trailing zeros.
5
0
Programming exercise on 21 August
- 状态
- 已结束
- 规则
- XCPC
- 题目
- 4
- 开始于
- 2024-8-21 17:30
- 结束于
- 2024-8-21 18:30
- 持续时间
- 1 小时
- 主持人
- 参赛人数
- 2