摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 810; in
阅读全文
posted @ 2021-07-14 19:32
Protein_lzl
阅读(121)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 30010; int T, n, MAXQ, SG[20]
阅读全文
posted @ 2021-07-14 19:27
Protein_lzl
阅读(130)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #include <map> #include <set> using namespace std; const int N =
阅读全文
posted @ 2021-07-14 19:24
Protein_lzl
阅读(75)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #include <cstdio> using namespace std; typedef unsigned long lon
阅读全文
posted @ 2021-07-14 19:20
Protein_lzl
阅读(57)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 400010; int last = 1, tot = 1
阅读全文
posted @ 2021-07-14 19:16
Protein_lzl
阅读(45)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 310, S
阅读全文
posted @ 2021-07-14 19:12
Protein_lzl
阅读(52)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 500010, p = 998244353, g = 3;
阅读全文
posted @ 2021-07-14 19:02
Protein_lzl
阅读(59)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstdio> #include <cmath> #define int long long using namespace std; const int N = 2000010; int
阅读全文
posted @ 2021-07-07 19:34
Protein_lzl
阅读(53)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <algorithm> #include <vector> #include <cstring> #include <cmath> #define int long long using n
阅读全文
posted @ 2021-07-07 19:31
Protein_lzl
阅读(54)
推荐(0)
摘要:
题目 Luogu LOJ Acinwg 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #include <vector> #include <cmath> using namespace std; const in
阅读全文
posted @ 2021-07-07 19:27
Protein_lzl
阅读(60)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <queue> #define int long long using namespace std; int n, k, P[] = { 2, 3, 5, 7, 11, 13, 17, 19
阅读全文
posted @ 2021-07-07 19:21
Protein_lzl
阅读(58)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 貌似在 \(Acwing\) 上要吸臭氧 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <set> using name
阅读全文
posted @ 2021-06-17 16:23
Protein_lzl
阅读(63)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstdio> #define int long long using namespace std; const int N = 3010, p = 2333; int T, n, m;
阅读全文
posted @ 2021-06-17 16:19
Protein_lzl
阅读(56)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #define int long long using namespace std; const int N = 3010; int n, m, f[N][N], s[N
阅读全文
posted @ 2021-06-17 16:13
Protein_lzl
阅读(61)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; #define int long long const int N = 410, M
阅读全文
posted @ 2021-06-12 13:17
Protein_lzl
阅读(45)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 65; int
阅读全文
posted @ 2021-06-11 12:14
Protein_lzl
阅读(55)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <algorithm> #include <cstring> #define int long long using namespace std; const int N = 110, mo
阅读全文
posted @ 2021-06-10 21:39
Protein_lzl
阅读(59)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 1000010, M = 2010, S = 1e6 +
阅读全文
posted @ 2021-06-03 16:18
Protein_lzl
阅读(49)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 500010, M = 22; int n, m, d,
阅读全文
posted @ 2021-06-02 16:18
Protein_lzl
阅读(50)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <algorithm> #define int long long using namespace std; int qmi(int a, int b, int mod) { int res
阅读全文
posted @ 2021-06-01 17:08
Protein_lzl
阅读(49)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <algorithm> #include <cmath> using namespace std; const int N = 1e6 + 10; struct PDD { double x
阅读全文
posted @ 2021-05-29 18:24
Protein_lzl
阅读(75)
推荐(0)
摘要:
题目 Luogu LOJ Acwing 思路 代码 #include <iostream> #include <algorithm> #include <cstring> #include <cstdio> using namespace std; const int N = 110, M = 10
阅读全文
posted @ 2021-05-29 18:22
Protein_lzl
阅读(69)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cstring> #include <vector> #define int long long #define a first #define b second
阅读全文
posted @ 2021-05-29 12:46
Protein_lzl
阅读(47)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cstring> #define int long long using namespace std; const int N = 200010; int n, E
阅读全文
posted @ 2021-05-29 12:44
Protein_lzl
阅读(49)
推荐(0)
摘要:
题目 Atcoder 思路 发现这样的笔太骚, 不适合写题解, 以后不会用了 代码 #include <iostream> using namespace std; int n, x, d; signed main() { cin >> n >> d >> x; double ad = d, ax
阅读全文
posted @ 2021-05-29 12:41
Protein_lzl
阅读(67)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 100010, M = N << 1; int n, m; int h[N]
阅读全文
posted @ 2021-05-29 12:37
Protein_lzl
阅读(47)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 100010; int n, w[4][N], to[N], st[N];
阅读全文
posted @ 2021-05-29 12:34
Protein_lzl
阅读(41)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> using namespace std; const int N = 200010; int n, m, a[N], b[N]; int check(int mid) { for (int i = 1; i <= n * 2
阅读全文
posted @ 2021-05-29 12:31
Protein_lzl
阅读(84)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 200010; int n, A, B, d[N], st[N], f[N]
阅读全文
posted @ 2021-05-20 18:04
Protein_lzl
阅读(53)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 1000010, p = 924
阅读全文
posted @ 2021-05-20 18:02
Protein_lzl
阅读(54)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 2010, mod = 9248
阅读全文
posted @ 2021-05-20 18:00
Protein_lzl
阅读(56)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 200010; int n, m, c[N], k[N]; int h[N]
阅读全文
posted @ 2021-05-20 17:58
Protein_lzl
阅读(66)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> using namespace std; int n , m , x , y , v[105][105][2]; short f[105][105][105][105]; signed
阅读全文
posted @ 2021-05-12 22:30
Protein_lzl
阅读(67)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 1010, mod = 1e9
阅读全文
posted @ 2021-05-12 22:25
Protein_lzl
阅读(51)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 100010; int n, m
阅读全文
posted @ 2021-05-05 17:04
Protein_lzl
阅读(46)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cmath> #include <map> #define int long long using namespace std; const int N = 100
阅读全文
posted @ 2021-05-04 12:30
Protein_lzl
阅读(39)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 4000010, mod = 1e9 + 7; int n, k, fact
阅读全文
posted @ 2021-05-03 17:28
Protein_lzl
阅读(56)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 100010; int n, m, a[N]; int main() { c
阅读全文
posted @ 2021-04-29 18:38
Protein_lzl
阅读(69)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 200010; int n, m, q, w[N], p[N], cnt;
阅读全文
posted @ 2021-04-28 17:41
Protein_lzl
阅读(42)
推荐(0)
摘要:
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> #include <queue> using namespace std; const int N = 500010, INF = 1e9; in
阅读全文
posted @ 2021-04-27 18:42
Protein_lzl
阅读(64)
推荐(0)