HDU 6033 (2017 多校训练赛1 1001) Add More Zero
来源:互联网 发布:淘宝活动规则 编辑:程序博客网 时间:2024/06/05 11:22
2017 Multi-University Training Contest - Team 1 1001
Add More Zero
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0
Problem Description
There is a youngster known for amateur propositions concerning several mathematical hard problems.
Nowadays, he is preparing a thought-provoking problem on a specific type of supercomputer which has ability to support calculations of integers between0 and (2m−1) (inclusive).
As a young man born with ten fingers, he loves the powers of10 so much, which results in his eccentricity that he always ranges integers he would like to use from 1 to 10k (inclusive).
For the sake of processing, all integers he would use possibly in this interesting problem ought to be as computable as this supercomputer could.
Given the positive integerm , your task is to determine maximum possible integer k that is suitable for the specific supercomputer.
Nowadays, he is preparing a thought-provoking problem on a specific type of supercomputer which has ability to support calculations of integers between
As a young man born with ten fingers, he loves the powers of
For the sake of processing, all integers he would use possibly in this interesting problem ought to be as computable as this supercomputer could.
Given the positive integer
Input
The input contains multiple test cases. Each test case in one line contains only one positive integer m , satisfying 1≤m≤105 .
Output
For each test case, output "Case #x : y " in one line (without quotes), where x indicates the case number starting from 1 and y denotes the answer of corresponding case.
Sample Input
164
Sample Output
Case #1: 0Case #2: 19
int main(){ long long n,cas=0; while(scanf("%lld",&n)==1) { printf("Case #%lld: %lld\n",++cas, (long long)(n*log10(2))); }}
阅读全文
0 1
- HDU 6033 (2017 多校训练赛1 1001) Add More Zero
- 【多校训练】 hdu 6033 Add More Zero
- HDU-多校训练赛-Add More Zero
- 2017 多校训练第一场 Add More Zero
- HDU 6033 Add More Zero(水~)
- HDU-6033 Add More Zero
- HDU 6033 Add More Zero
- HDU 6033 Add More Zero
- hdu 6033 Add More Zero
- HDU 6033 Add More Zero【】
- HDU 6033 Add More Zero
- HDU 6033 Add More Zero
- hdu 6033 Add More Zero
- HDU-6033 Add More Zero
- HDU 2017 多校联赛-1001 Add More Zero
- HDU 2017 多校联赛 1001 Add More Zero
- 2017杭电多校联赛 1001 Add More Zero(取对数)HDU 6033
- Add More Zero HDU
- 自动同意SDK components协议
- ReactNative ART的用法
- JAVA正则表达式-捕获组与非捕获组
- Rxjava2.0中的 Subject
- android开发 之常用的drawable(一)
- HDU 6033 (2017 多校训练赛1 1001) Add More Zero
- docker中容器互联,补充dockerfile与docker-compose.yml
- DVWA下的XSS
- python中查看代码的运行时间方法
- java 贪吃蛇
- JcJc错别字纠错检查API说明
- new_file
- HiveSQL解析过程详解
- 外网地址和端口好已经提供,已经搭建环境,外网却不能访问