杭电暑期集训-Add More Zero
来源:互联网 发布:骁龙优化的浏览器 编辑:程序博客网 时间:2024/05/21 00:46
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
一道简单的数学题
题目大意:求与2的m次方减一相同位数10的y次方y的值;
#include<iostream>#include<cmath>using namespace std;int main(){ long long int a,b,c,d; a=0; while(cin>>b) { a++; c=int(b*log10(2)); cout<<"Case #"<<a<<": "; cout<<c<<endl; } return 0;}
阅读全文
0 0
- 杭电暑期集训-Add More Zero
- 杭电 Add More Zero
- 杭电problem6033- Add More Zero
- HUD 6033 Add More Zero(暑期训练1001)
- Add More Zero
- Add More Zero
- 1001.Add More Zero
- hdu6033--Add More Zero
- HDU6033-Add More Zero
- HDU6033-Add More Zero
- hdu6033 Add More Zero
- Add More Zero HDU
- Add More Zero
- HDU-Add More Zero
- Add More Zero
- Add More Zero
- 6033 Add More Zero
- Add More Zero
- 8.8 奇异值分解
- mqtt向android推送消息(一)——发送端使用.net
- IPC之AIDL -- APK之间进程通信(入门)
- BZOJ 2351: [BeiJing2011]Matrix 哈希
- python对外接口环境配置(linux)
- 杭电暑期集训-Add More Zero
- Android.mk文件详解介绍
- C语言:变量的存储类型
- 短标记法
- nginx配置多个IP地址
- SpringMVC URL拦截器
- 欢迎使用CSDN-markdown编辑器
- java线程池优化--ThreadPoolExecutor机制
- git set proxy