![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
高精度
Kefault
这个作者很懒,什么都没留下…
展开
-
poj 1047 Round and Round We Go
简单的高精度模拟。 #include #include #include using namespace std;int main(){ char s[200],sc[200]; while(scanf("%s",s)!=EOF) { int len=strlen(s),flag=1,i,j,k=0;原创 2014-03-30 16:29:46 · 965 阅读 · 0 评论 -
poj 1131 Octal Fractions
高精度的题目,感觉挺有意思的,想了好一会呢,除法可以转化成乘法来进行,比如除以8,可以是乘125,再除1000. 这个题目中的例子:0.75,结果小数点后的是953125,怎么算的呢?是这样:5*125*125+7*125得到的。这样以后就很简单了。#include #include #include using namespace std;int mai原创 2014-03-30 17:19:44 · 1071 阅读 · 0 评论 -
hdu 5050 Divided Land
题目:本质是求两个数的最大公约数,java大数真好用 ^_^。import java.math.BigInteger;import java.util.Scanner;public class Main { public static void main(String[] args) { BigInteger TWO = BigInteger原创 2014-09-28 16:06:42 · 978 阅读 · 0 评论