HUD 6033 Add More Zero(暑期训练1001)
来源:互联网 发布:修复tf卡数据 编辑:程序博客网 时间:2024/06/14 01:35
Add More Zero
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 576 Accepted Submission(s): 409
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
#include <iostream>#include<cstdio>#include<cstring>#include<cmath>using namespace std;int main(){ int m; int cnt=0; double x=log10(2); while(~scanf("%d",&m)) { cnt++; printf("Case #%d: %d\n",cnt,(int)(m*x)); } return 0;}
阅读全文
0 0
- HUD 6033 Add More Zero(暑期训练1001)
- HUD 6033 Add More Zero(数学)
- 杭电暑期集训-Add More Zero
- 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-6033 Add More Zero
- (多校)hdu 6033 Add More Zero(数学)
- HDU 6033(Add More Zero) 简单数学题 Java
- 2017年多校赛第一场 1001 Add More Zero(逻辑思维)
- 2017杭电多校联赛 1001 Add More Zero(取对数)HDU 6033
- ORA-00838: Specified value of MEMORY_TARGET
- Qt5开发学习之布局管理(三)
- 数组
- Easyui使用Dialog行内按钮布局
- 刷提报告002 洛谷P1008
- HUD 6033 Add More Zero(暑期训练1001)
- 多线程死锁问题
- ACdream 1112 Alice and Bob (SG函数)
- selenium XPath 定位
- Android性能优化之提高ListView性能的技巧
- 如何从NCBI下载SRA数据
- GDB调试基本命令
- AddressSanitizer算法及源码解析
- python核心高级学习总结4-------python实现进程通信