摘要: Problem : 1018 ( Big Number ) Judge Status : AcceptedRunId : 5383214 Language : G++ Author : billforumCode Render Status : Rendered By HDOJ G++ Code Render Version 0.01 Beta#include <iostream>#include <cmath>using namespace std;int main(){ int n, num; cin >> n; for(int i=0;i<n; 阅读全文
posted @ 2012-02-20 19:05 wuzhibin 阅读(254) 评论(0) 推荐(0)
摘要: 求N!位数本质求 :log10(N!)+1log10(N!)=log10(1*2*3*4*5…………*N)=log10(1)+log10(2)+………………+log10(N);ans=1;for(int i=1;i<=N;i++)ans+=log10(i); 阅读全文
posted @ 2012-02-20 18:27 wuzhibin 阅读(177) 评论(0) 推荐(0)
摘要: /*This Code is Submitted by billforum for Problem 2183 at 2012-02-20 15:36:33*/#include <iostream>#include <memory.h>#include <stdlib.h>#include <cstdio>#include <cstring>#include <cmath>using namespace std;int main(){ int n; double x0,y0,x1,y1,x2,y2; double ans,v 阅读全文
posted @ 2012-02-20 15:39 wuzhibin 阅读(186) 评论(0) 推荐(0)
摘要: Source CodeProblem: 1654 User: billforum Memory: 948K Time: 32MS Language: C++ Result: Accepted Source Code #include <iostream>#include <memory.h>#include <stdlib.h>#include <cstdio>#include <cstring>#include <cmath>using namespace std;char str[1000005];int main() 阅读全文
posted @ 2012-02-20 15:24 wuzhibin 阅读(226) 评论(0) 推荐(0)