
数学
CCSUZB
吾生也有涯,而知也无涯
展开
-
NYOJ666
题目链接用二分法来解方程,但是解同类问题时要注意方程是否有唯一解#include <iostream> #include <cstring>#include <cstdio>#include <algorithm>#include <string>#include <string.h>#include <cmath>#include <sstream>#include <set>原创 2017-08-07 21:10:34 · 263 阅读 · 0 评论 -
FZU2282-组合数-逆元
题目链接#include <iostream>#include <queue>#include <functional>using namespace std;typedef long long LL;const int MOD = 1e9 + 7;const int maxn = 10010;LL pre[maxn], fac[maxn];LL t, n, k;void init()原创 2017-08-09 23:04:37 · 306 阅读 · 0 评论 -
HDU1023
题目连接博客连接卡特兰数#include<iostream>#include<cstdio>#include<cstring>using namespace std;int a[110][110]; //大数卡特兰数int b[110]; //卡特兰数的长度 void Catalan(){ //求卡特兰数 int i,j,len,carry,tmp;原创 2017-08-07 11:07:19 · 356 阅读 · 0 评论