
ACM-高精度
文章平均质量分 69
路小白_zZ
这个作者很懒,什么都没留下…
展开
-
uva 424 Integer Inquiry(字符串,高精度)
#include #include int main (){ char str[101][110]; int a[101][110]={0},b[200]={0},i,j,k,length[200],t,max; t=0; while(gets(str[t])) { if(str[t][0]=='0'&&str[t][1]=='\0') break; t++; }原创 2014-03-06 00:34:05 · 1133 阅读 · 0 评论 -
uva 10106(高精度)
#include #include #define N 1005int main (){int arr[N],i,j,k,len1,len2;char a[N],b[N];while(gets(a)&&gets(b)) {memset(arr,0,sizeof(arr));len1=strlen(a);len2=strlen(b);for(i=le原创 2014-03-08 23:47:36 · 914 阅读 · 0 评论 -
uva 465(高精度)
题目:Write a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be represented as a ``原创 2014-07-09 09:29:20 · 971 阅读 · 0 评论 -
uva 10494(高精度)
题目:Oooooooooooooooh! If I could do the easy mathematics like my school days!! I can guarantee, that Id not make any mistake this time!!Says a smart university student!! But his teacher e原创 2014-07-10 08:36:59 · 732 阅读 · 0 评论 -
uva 748(高精度)
题目:Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer原创 2014-07-09 19:14:40 · 967 阅读 · 0 评论 -
hdu 5186
题意:给出n个b进制的数,要求把这n个数加起来,输出也是b进制,不需要进位。题解:高精度加法题。#include #include #include using namespace std;const int N = 205;int n, b, length[N];char str1[N], res[N], str[N][N];int solve(char c) { in原创 2015-03-15 12:48:52 · 741 阅读 · 0 评论