摘要:
https://www.luogu.com.cn/problem/P4310 int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); int n; cin >> n; int res = 0; for (int i = 1; i 阅读全文
摘要:
题集导航:https://codeforces.com/gym/105887 ` define int long long using namespace std; int res = 0; int idx = 0; int usenum[400100]; int copynum[400100]; 阅读全文
摘要:
题目来源:https://www.luogu.com.cn/problem/P1381 ` define int long long const int P = 131; const int MOD = 9988234; unordered_map<int, int>words; unordered 阅读全文
摘要:
题目来源:https://www.luogu.com.cn/problem/P1955 ` define int long long int p[1000010]; bool haveans = 0; const int MOD = 998823; int find(int x) { if (x ! 阅读全文
摘要:
题目来源:https://www.luogu.com.cn/problem/P13099 ` define int long long typedef pair<int, int> PII; vector poi[200010]; // 邻接表存储树 int deepnum[200010]; // 阅读全文
摘要:
题目来源:https://www.luogu.com.cn/problem/P5461 ` int mp[1030][1030]; int k; int k1; void jisuan(int startn,int starn,int k) { if (k < 0) { return; } for 阅读全文
摘要:
题目来源:https://www.luogu.com.cn/problem/P1106 ` struct NUM { int num; int i; }nums[250]; bool cmp(const NUM& i, const NUM& j) { if (i.num < j.num) { ret 阅读全文
摘要:
题目来源:https://www.luogu.com.cn/problem/P1135 ` typedef pair<int, int>Pi; int N, A, B;bool hs[201]; int K[250];queueq; int bfs(int nown, int fn) { q.pus 阅读全文