摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=3215利用对数求 N 的最高位 s=pow(10, log10(N)-[log10(N)]) ; View Code 1 #include <stdio.h> 2 #include <math.h> 3 const double eps=1.0e-6; 4 int dp[10010][10]; 5 void Init( ) 6 { 7 int y; 8 double s=log10(2), t, x; 9 dp[0][1]=1;10 for( int ... 阅读全文
posted @ 2012-09-19 20:07 淡墨æ末央 阅读(174) 评论(0) 推荐(0) 编辑