写都写了,当大数相除模版吧 #include<iostream> #include<cstdio> #include<string.h> #include<string> #include<math.h> #include<map> #define maxn 10005 using namespac ...
分类:
其他好文 时间:
2019-03-10 20:32:17
阅读次数:
162
题目vj上的链接:https://vjudge.net/problem/UVA-10494 参考博客:https://blog.csdn.net/yanduoxuan/article/details/51972079 题意:第一个数是没规定范围的,无限大= =,然后中间一个符号代表要进行‘/’还是‘ ...
分类:
其他好文 时间:
2018-07-25 16:23:08
阅读次数:
208
碰到很多大数类的题目,听说JAVA比较流氓,赶紧去学习一波( <(?????)> ) 大数相加: 大数相乘: 大数相减:public BigInteger subtract(BigInteger val) 大数相除:public BigInteger divide(BigInteger val) 大 ...
分类:
编程语言 时间:
2017-10-08 11:22:39
阅读次数:
261
Catalan数 卡塔兰数是组合数学中一个常在各种计数问题中出现的数列。以比利时的数学家欧仁·查理·卡塔兰(1814–1894)命名。历史上,清代数学家明安图(1692年-1763年)在其《割圜密率捷法》最早用到“卡塔兰数”,远远早于卡塔兰。有中国学者建议将此数命名为“明安图数”或“明安图-卡塔兰数 ...
分类:
其他好文 时间:
2017-06-13 18:20:05
阅读次数:
255
高精度除法(高除高)#include
#include
#include
#include
#include
using namespace std;
int a[101],b[101],c[101],d,i;
void shuru(int a[])
{
string s;
cin>>s;...
分类:
其他好文 时间:
2016-05-12 13:15:44
阅读次数:
352
棋盘覆盖时间限制:3000 ms | 内存限制:65535 KB难度:3描述在一个2k×2k(1#include#define MAXN 10010int m[MAXN],pow[MAXN];void bigpower(int n){int a,b;memset(m,0,sizeof(m));m[0...
分类:
其他好文 时间:
2015-07-24 22:29:53
阅读次数:
132
Large Division
Description
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if
there exi...
分类:
其他好文 时间:
2015-06-18 09:44:38
阅读次数:
127
Problem Description
As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the railway.
Input
The input contains sever...
分类:
其他好文 时间:
2015-04-03 17:22:48
阅读次数:
145