摘要: 没思路,看了网上各路好汉的分析之后略懂一二。 任一个数m可以表示成10^(n+x),这里n为整数,x是小数。我们知道10^(n+x)=(10^n)*(10^x),前者的结果很明显,所以只要求出10^x,就可以知道m最左面的数值。 (够shit)#include <iostream>#include <math.h>using namespace std;int main(){ double x,m,sum; __int64 i,res,b; __int64 n; cin>>n; //如果换成scanf("%I64d",&n);会超 阅读全文
posted @ 2011-11-02 15:31 orangeblog 阅读(199) 评论(0) 推荐(0) 编辑