![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
高精度
文章平均质量分 65
捡石子的小孩
这个作者很懒,什么都没留下…
展开
-
高精度乘单精度 poj1001
这道题也是一道简单的高精度乘单精度,但需要注意的细节很多(wrong了六次)。要注意的部分已在代码中标出。 //高精度乘单精度 #include #include #include using namespace std; int ans[10000000]; int pos;//小数点的位置 int main() { char s[10]; int n,i,j,原创 2012-11-18 12:32:31 · 1024 阅读 · 0 评论 -
高精度乘以单精度 hdu1042 N!
#include #include using namespace std; int ans[10000000];//存放n!的结果 int main() { int n,i,j,k,len; while(~scanf("%d",&n)) { ans[1]=1; len=1; for(i=2;i<=n;i++) { for(j=1;j<原创 2012-11-18 10:10:37 · 1297 阅读 · 0 评论 -
高精度乘以单精度 Round and Round We Go poj1047
题意:给你一个n位整数(可以有前导0),用这个数分别乘以1~n中的每一个数,得到的结果都与原数相同,这里的相同是指得到的结果从某一位开始到结束与原数相等。 下面贴代码,已带有详细的注释。 #include #include #include using namespace std; int ans[1000]; char s[65]; int main() { int原创 2012-11-19 13:51:15 · 1237 阅读 · 0 评论