上一页 1 2 3 4 5 6 ··· 9 下一页

2020年9月6日

棋牌覆盖问题(分治)

摘要: 转自 https://www.cnblogs.com/yinbiao/p/8666209.html #include <bits/stdc++.h> using namespace std; typedef long long i64; const int maxn = 1e3 + 32; int  阅读全文

posted @ 2020-09-06 22:19 chengyulala 阅读(139) 评论(0) 推荐(0) 编辑

2020年9月5日

UVA 11732题解

摘要: // 字典树的左儿子右兄弟法 // 相同长度则为 strlen(str)*2 + 2 不同则为 公共前缀 + 1 #include<bits/stdc++.h> #define rep(i, n) for(int i=0;i!=n;++i) #define per(i, n) for(int i=n 阅读全文

posted @ 2020-09-05 16:21 chengyulala 阅读(102) 评论(0) 推荐(0) 编辑

LA 3942Remember the Word

摘要: 设d(i)为从字符i开始的字符串的分解方案数,则d[i]= sum{(d[i]+len(x))}x 为 d[i]代表的字符的前缀/* * @Author: CY__HHH * @Date: 2020-09-04 00:56:59 * @LastEditTime: 2020-09-05 12:50:1 阅读全文

posted @ 2020-09-05 12:55 chengyulala 阅读(99) 评论(0) 推荐(0) 编辑

2020年7月2日

C++简单实现文本查询程序

摘要: /* * @Author: CY__HHH * @Date: 2020-04-17 00:27:19 * @LastEditTime: 2020-07-02 15:07:15 */ #include<bits/stdc++.h> #define rep(i, n) for(int i=0;i!=n; 阅读全文

posted @ 2020-07-02 15:11 chengyulala 阅读(318) 评论(0) 推荐(0) 编辑

2020年6月30日

简单用栈实现加减括号判优

摘要: #include<bits/stdc++.h> #define rep(i, n) for(int i=0;i!=n;++i) #define per(i, n) for(int i=n-1;i>=0;--i) #define Rep(i, sta, n) for(int i=sta;i!=n;++ 阅读全文

posted @ 2020-06-30 17:07 chengyulala 阅读(188) 评论(0) 推荐(0) 编辑

2020年4月10日

C++ 头文件系列(stdexcept)

摘要: 预定义异常类 这个头文件包含的内容非常简单,只包含9个异常类,均从exception类派生,因此我们用三张图来描述: 这里仅解释两点: overflow : 指值的大小超过 整型 变量能表示的范围,即小于最小值、大于最大值。 underflow : 指浮点值的量级小于 浮点 变量能表示的最小量级,即 阅读全文

posted @ 2020-04-10 17:28 chengyulala 阅读(428) 评论(0) 推荐(0) 编辑

2020年4月3日

PAT 1029队列

摘要: #include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n,m; long temp; queue<long> q1,q2; 阅读全文

posted @ 2020-04-03 20:24 chengyulala 阅读(104) 评论(0) 推荐(0) 编辑

2019年12月20日

codeforces603

摘要: A. Sweet Problem #include<bits/stdc++.h> #define rep(i, n) for(int i=0;i!=n;++i) #define per(i, n) for(int i=n-1;i>=0;--i) #define Rep(i, sta, n) for( 阅读全文

posted @ 2019-12-20 00:05 chengyulala 阅读(163) 评论(0) 推荐(0) 编辑

2019年12月19日

codeforces605

摘要: A. Three Friends #include<bits/stdc++.h> #define rep(i, n) for(int i=0;i!=n;++i) #define per(i, n) for(int i=n-1;i>=0;--i) #define Rep(i, sta, n) for( 阅读全文

posted @ 2019-12-19 18:22 chengyulala 阅读(218) 评论(0) 推荐(0) 编辑

2019年12月4日

C++中tuple元组的基本用法

摘要: 转载至https://blog.csdn.net/sevenjoin/article/details/88420885 1,元组简介 tuple是一个固定大小的不同类型值的集合,是泛化的std::pair。我们也可以把他当做一个通用的结构体来用,不需要创建结构体又获取结构体的特征,在某些情况下可以取 阅读全文

posted @ 2019-12-04 21:02 chengyulala 阅读(8167) 评论(0) 推荐(1) 编辑

上一页 1 2 3 4 5 6 ··· 9 下一页

导航