HDU 1060 Leftmost Digit 数学题
来源:互联网 发布:java spring框架 入门 编辑:程序博客网 时间:2024/06/09 22:39
http://www.cppblog.com/LeoW/archive/2012/03/08/167427.html
View Code
#include<stdio.h>#include<string.h>#include<math.h>#define lld __int64int main(){ int i, j, cas; int n; scanf("%d", &cas); while(cas--) { scanf("%d", &n); double sum1 = n*log10(n*1.0); lld sum2 = (lld) sum1; sum1 -= sum2; printf("%d\n", (int)pow(10.0, (double)sum1)); } return 0;}
- HDU 1060 Leftmost Digit 数学题
- hdu 1060 Leftmost Digit(数学题)
- HDU ACM 1060 Leftmost Digit [数学题]
- HDU 1060 Leftmost Digit & BIT1046 Leftmost Digit
- hdu 1060 Leftmost Digit
- hdu 1060 Leftmost Digit
- HDU 1060 Leftmost Digit
- hdu 1060 Leftmost Digit
- hdu 1060 Leftmost Digit
- HDU 1060 LeftMost Digit
- HDU 1060 Leftmost Digit
- HDU 1060 Leftmost Digit
- hdu 1060 Leftmost Digit
- hdu 1060 Leftmost Digit
- hdu - 1060 - Leftmost Digit
- hdu 1060 Leftmost Digit
- HDU 1060 Leftmost Digit
- hdu 1060 Leftmost Digit
- POJ 1523 SPF tarjan算法入门
- 重连通分量的求解
- POJ 1966 Cable TV Network 顶点连通度的求解
- HDU 4431 Mahjong 2012天津A题 模拟题
- HDU 1717 小数化分数2
- HDU 1060 Leftmost Digit 数学题
- set集合容器
- POJ 1144 Network 求割点个数
- ZOJ 2588 Burning Bridges 求割边
- hbase的thrift服务
- POJ 2942 Knights of the Round Table 边双连通分量求解
- codeforces 159D dp + strings 好题
- POJ 1014 Dividing 多重背包
- POJ 1036 Gangsters DP 多解