hdu6033
来源:互联网 发布:新概念英语4 知乎 编辑:程序博客网 时间:2024/06/08 18:27
hdu 6033
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 between 0 and (2m−1) (inclusive).
As a young man born with ten fingers, he loves the powers of 10 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 integer m, your task is to determine maximum possible integer k that is suitable for the specific supercomputer.
说白了,就是计算
开始因为
不过
那换个思路,求
这道题就只是一个需要化简的数学题
#include <iostream>#include <math.h>using namespace std;int main(){ int expon; double tenLogtwo; int i = 1;double ans; for (;cin >> expon;i++) { cout << "Case #" << i << ": "; tenLogtwo = log(2) / log(10); ans = tenLogtwo * expon; cout << (int)ans << "\n"; } return 0;}
- hdu6033
- hdu6033--Add More Zero
- HDU6033-Add More Zero
- HDU6033-Add More Zero
- hdu6033 Add More Zero
- HDU6033 Add More Zero【数学】
- HDU6033 & 2017 Multi-University Training Contest
- HDU6033(多校联合签到水题)
- HDU6033 Add More Zero(取对数)
- HDU6033-2017多校第一场-Add More Zero
- (hdu6033)Add More Zero(数学,取对数)
- 2017多校第一场 Add More Zero(hdu6033)
- HDU6033---Add More Zero(2017多校联赛A题)
- 2017多校联合1(hdu6033)水Add More Zero
- vue2.0 keep-alive最佳实践
- iOS审核被拒大全
- 杭电acm 1880魔咒词典(水题)
- 删除Kali Linux多余的系统架构
- Pod升级AFNetWorking3.0崩溃
- hdu6033
- java-将一个正整数分解质因数
- HDU 6078 Wavel Sequence (dp + 树状数组, 2017 Multi-Univ Training Contest 4)
- greater<int>()和less<int>()的使用
- 13.odoo入门——杂记之git
- Android架构设计05-基于IOC的布局,控件,事件注入
- 数据库字段的长度 作用
- python 动态引入模块 importlib 和 __import__ 不一样
- Android之ExpandableListView的各种效果(默认展开不合闭,自定义父栏目及箭头控制)