随笔分类 -  随便写写

摘要:卡着时间没测,应该没大问题 #include <bits/stdc++.h> using namespace std; int current_time = -5; map<char*, int> m; void print_time() { printf("%03d:%02d ", current 阅读全文
posted @ 2023-04-05 00:46 chenyilei 阅读(119) 评论(0) 推荐(0)
摘要:![](https://img2023.cnblogs.com/blog/1200393/202303/1200393-20230302110323214-2048403359.png) 阅读全文
posted @ 2023-03-02 11:03 chenyilei 阅读(20) 评论(0) 推荐(0)
摘要:NoGo游戏 MCTS 鼠标、键盘事件 存档的操作 tips void fun(int a[9][9]) { //此时sizeof(a)为int指针大小4/8字节 } 阅读全文
posted @ 2022-10-29 22:16 chenyilei 阅读(41) 评论(0) 推荐(0)
摘要:2022牛客国庆集训派对day1 阅读全文
posted @ 2022-10-01 17:13 chenyilei 阅读(49) 评论(0) 推荐(0)
摘要:Slipper 给一颗以1为根有边权的数,且当$|dep_u-dep_v|==k$时$u$可以花费$p$走到$v$,求s到t的最短路。 每一个dep建两个点一个从树上的点连入,一个连向树上的点,中间连花费p的边 前向星比vector快了不止一倍 using IO::gi; using IO::pi; 阅读全文
posted @ 2022-08-05 23:44 chenyilei 阅读(47) 评论(0) 推荐(0)
摘要:Link with Bracket Sequence II 给定n个数,$x$和$-x$表示一对括号,正的表示左括号。0可以改成任意括号编号。|括号编号|<=m。问组成括号序列的方案数。 f[0][i][j]表示i-j最外面是一层括号的方案,f[1][i][j]表示i-j由几个括号并列组成的方案 # 阅读全文
posted @ 2022-08-05 23:33 chenyilei 阅读(56) 评论(0) 推荐(0)
摘要:Cyber Language 直接输出 #include <bits/stdc++.h> using namespace std; char s[100]; int main() { // freopen("a.in", "r", stdin); int n; scanf("%d\n", &n); 阅读全文
posted @ 2022-08-05 23:11 chenyilei 阅读(54) 评论(0) 推荐(0)
摘要:小错误 阅读全文
posted @ 2021-04-21 10:23 chenyilei 阅读(306) 评论(0) 推荐(0)
摘要:![](https://img2020.cnblogs.com/blog/1200393/202104/1200393-20210409083429365-2070343976.png) 阅读全文
posted @ 2021-04-09 08:35 chenyilei 阅读(33) 评论(0) 推荐(0)
摘要:重建计划(点分治)、树分块 阅读全文
posted @ 2021-04-08 11:36 chenyilei 阅读(88) 评论(0) 推荐(0)
摘要:分治+扫描线处理子树问题 阅读全文
posted @ 2021-03-31 16:52 chenyilei 阅读(53) 评论(0) 推荐(0)
摘要:splay 阅读全文
posted @ 2021-03-26 12:47 chenyilei 阅读(24) 评论(0) 推荐(0)
摘要:积性函数积、$\mu(n)$和$id(n)$、n!相关、非voidreturn 阅读全文
posted @ 2021-03-25 09:19 chenyilei 阅读(58) 评论(0) 推荐(0)
摘要:bsgs的问题、数论题 阅读全文
posted @ 2021-03-24 11:29 chenyilei 阅读(39) 评论(0) 推荐(0)
摘要:polya首位颜色、原根的大小、bsgs和exgcd 阅读全文
posted @ 2021-03-23 14:07 chenyilei 阅读(18) 评论(0) 推荐(0)
摘要:虚树 阅读全文
posted @ 2021-03-22 11:23 chenyilei 阅读(38) 评论(0) 推荐(0)
摘要:引用、nth_element、splay、treap 阅读全文
posted @ 2021-03-21 13:25 chenyilei 阅读(28) 评论(0) 推荐(0)
摘要:减枝、读入重复 阅读全文
posted @ 2021-03-15 09:09 chenyilei 阅读(41) 评论(0) 推荐(0)
摘要:bitset、马拉车 阅读全文
posted @ 2021-03-12 09:28 chenyilei 阅读(54) 评论(0) 推荐(0)
摘要:滚动、1e9 阅读全文
posted @ 2021-03-08 11:10 chenyilei 阅读(61) 评论(0) 推荐(0)