高精度
文章平均质量分 65
捡石子的小孩
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
高精度乘单精度 poj1001
这道题也是一道简单的高精度乘单精度,但需要注意的细节很多(wrong了六次)。要注意的部分已在代码中标出。//高精度乘单精度#include#include#includeusing namespace std;int ans[10000000];int pos;//小数点的位置int main(){ char s[10]; int n,i,j,原创 2012-11-18 12:32:31 · 1170 阅读 · 0 评论 -
高精度乘以单精度 hdu1042 N!
#include#includeusing 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 · 1394 阅读 · 0 评论 -
高精度乘以单精度 Round and Round We Go poj1047
题意:给你一个n位整数(可以有前导0),用这个数分别乘以1~n中的每一个数,得到的结果都与原数相同,这里的相同是指得到的结果从某一位开始到结束与原数相等。下面贴代码,已带有详细的注释。#include#include#includeusing namespace std;int ans[1000];char s[65];int main(){ int原创 2012-11-19 13:51:15 · 1367 阅读 · 0 评论
分享