摘要:
列主元GaussJordan消元法 struct Matrix { static const int MAXN = 505; static const int MAXM = 505; int n, m; long double A[MAXN][MAXM]; long double x[MAXM]; 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define ls ch[id][0] #define rs ch[id][1] const int INF = 1e9; const int MAXN = 100 阅读全文
摘要:
struct SAM { static const int MAXN = 1e6 + 10; int nxt[2 * MAXN][26]; int len[2 * MAXN]; int lnk[2 * MAXN]; int cnt[2 * MAXN]; int siz; int lst; void 阅读全文
摘要:
struct BigInt { static const int BASE = 1000000000; static const int DLEN = 9; int len; vector<int> a; BigInt(int v = 0) { len = 0, a.resize(2); do { 阅读全文