上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 早上好!(00:50:13) 这次的比赛挺好的:总共做了 \(6\) 题。 A. Problem Generator 直接 map 统计就行。 #include<bits/stdc++.h> using namespace std; const int MAXN = 2e5+10; int T,n, 阅读全文
posted @ 2024-06-04 00:54 GuTongXing 阅读(359) 评论(4) 推荐(1)
摘要: C++模板 置顶 #include<bits/stdc++.h> using namespace std; #define endl '\n' //#define int long long namespace gtx{ // Fast IO void read(int &x){ x = 0;int 阅读全文
posted @ 2024-06-03 16:29 GuTongXing 阅读(58) 评论(0) 推荐(0)
摘要: Count BFS Graph 题目信息 Luogu CF1906J、Codeforces 1906J 题面翻译 对于一个 \(n\) 个节点的无向图的邻接矩阵 \(M\),满足 \(M_{i,i}=0,M_{u,v}=M_{v,u}\),\(M_{i,j}=1\) 表示 \(M_{i,j}\) 右 阅读全文
posted @ 2024-06-03 15:23 GuTongXing 阅读(47) 评论(0) 推荐(0)
摘要: 达成时间 基础信用 练习情况 社区贡献 比赛情况 获得成就 总咕值 20250127 100 50 28 36 60 274 20241023 100 50 46 60 30 286 20240826 100 60 70 16 30 276 20240819 100 59 59 16 30 264 阅读全文
posted @ 2024-06-03 14:46 GuTongXing 阅读(107) 评论(0) 推荐(0)
摘要: 权值线段树 #include<bits/stdc++.h> using namespace std; const int MAXN = 5e5+10; int n,m,a[MAXN],x,y,op; //Segment tree #define l(x) tree[x].ls #define r(x 阅读全文
posted @ 2024-06-01 12:46 GuTongXing 阅读(35) 评论(0) 推荐(0)
摘要: Another Filling the Grid 题目信息 题目链接 Luogu CF1228E 题目描述 You have $ n \times n $ square grid and an integer $ k $ . Put an integer in each cell while sat 阅读全文
posted @ 2024-05-31 20:56 GuTongXing 阅读(24) 评论(0) 推荐(0)
摘要: 榜单 # 提交者 = * A B C D E F 1(2055) gutongxing2026 1388 -1 488 900 A #include<bits/stdc++.h> using namespace std; int T,n,m; signed main(){ scanf("%d",&T 阅读全文
posted @ 2024-05-31 20:28 GuTongXing 阅读(76) 评论(0) 推荐(0)
摘要: 作弊者 阅读全文
posted @ 2024-05-31 16:44 GuTongXing 阅读(13) 评论(0) 推荐(0)
摘要: [JSOI2015] 染色问题 题目描述 萌萌家有一个棋盘,这个棋盘是一个 \(n \times m\) 的矩形,分成 \(n\) 行 \(m\) 列共 \(n \times m\) 个小方格。 现在萌萌和南南有 \(C\) 种不同颜色的颜料,他们希望把棋盘用这些颜料染色,并满足以下规定: 棋盘的每 阅读全文
posted @ 2024-05-30 19:49 GuTongXing 阅读(50) 评论(0) 推荐(0)
摘要: 莫比乌斯函数 定义 \[\mu(x)= \left\{ \begin{matrix} 1 & x=1\\ (-1)^m & x=p_1\\ 0&\texttt{other} \end{matrix} \right. \]求法 方法1. 直接暴力分解质因数 太水了。 方法2. 埃氏筛 \(O(n\lo 阅读全文
posted @ 2024-05-30 16:12 GuTongXing 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页