
大数
nyist_xushukui
成材不自在,自在不成材!!
展开
-
求高精度幂(poj1001)
DescriptionProblems 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 compute转载 2017-04-19 21:06:15 · 725 阅读 · 0 评论 -
A/B Problem(大数)
描述 做了A+B Problem,A/B Problem不是什么问题了吧! 输入 每组测试样例一行,首先一个号码A,中间一个或多个空格,然后一个符号( / 或者 % ),然后又是空格,后面又是一个号码B,A可能会很长,B是一个int范围的数。 输出 输出结果。 样例输入 110 / 100 99 % 10 2147483647 / 2147483647 2147483646 %转载 2017-04-19 21:08:36 · 428 阅读 · 0 评论 -
存一下大数加减法
#include<map> #include<set> #include<queue> #include<stack> #include<vector> #include<math.h> #include<cstdio> #include<sstream> #include<numeric>//STL数值算法头文件 #include<stdlib.h> #include <ctype.h> #inc原创 2017-04-10 15:46:10 · 288 阅读 · 0 评论 -
(大数乘小数、大数加小数、大数相乘、大数阶乘、大数进制转换)
#include <stdio.h> #include <string.h> //大数乘小数 void mult(char c[],int m,char t[]) { char s[100]; int len=strlen(c); for(int i=0; i<len; i++) s[len-i-1]=c[i]-'0';转载 2017-04-19 21:23:34 · 694 阅读 · 0 评论 -
大数除法
#include<stdio.h> #include<string.h> #define M 1000005 char s1[M],s2[M]; int a[M]; void ss(int m)//减运算 { int i=0,j; while(1) { if(s1[i]=='0') i++; else转载 2017-04-19 21:26:56 · 553 阅读 · 0 评论 -
A - Chinese Girls' Amusement ZOJ - 2313(大数)
You must have heard that the Chinese culture is quite different from that of Europe or Russia. So some Chinese habits seem quite unusual or even weird to us.So it is known that there is one popular gam原创 2017-04-20 18:23:46 · 1652 阅读 · 0 评论 -
hdu 1018 (Big Number)
Problem Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are g原创 2017-05-22 19:04:05 · 225 阅读 · 0 评论