摘要:
朴素 #define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; const int N = 5 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e7 + 20; int exgcd(int a, int b, in 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; int f[1010]; int su[800];//素数表 int main() { int n = 1000; int tot = 0; f[1] = 1; for (int i = 2; i <= n; 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 5e5 + 20; vector<int>e[N]; int dep[N 阅读全文