摘要: DP题自己实在想不出来,看大神代码才能勉强理解一下 阅读全文
posted @ 2018-05-14 09:35 NoRain丶 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const int A=1000001; long long n,m; long long f[10... 阅读全文
posted @ 2018-05-13 09:50 NoRain丶 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define mp make_pair #define pb push_back #define debug puts("debug"... 阅读全文
posted @ 2018-05-13 08:49 NoRain丶 阅读(103) 评论(0) 推荐(0) 编辑
摘要: map打表存一下对应的密码 不会map感觉不好弄这题 阅读全文
posted @ 2018-05-13 08:36 NoRain丶 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 原串长度减去 原串和逆串的最长公共子序列的长度 阅读全文
posted @ 2018-05-13 08:08 NoRain丶 阅读(103) 评论(0) 推荐(0) 编辑
摘要: XiaoMing likes mathematics, and heis just learning how to convert numbers between different bases , but he keeps making errorssince he is only 6 years 阅读全文
posted @ 2018-05-06 13:36 NoRain丶 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 仔细看题想想就是个贪心题,两个sort就可以解决了 阅读全文
posted @ 2018-05-06 08:58 NoRain丶 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 题意:给你三个字符串,让你计算1 2 串和3 串是否匹配,就是3串可以分解为 1 2 串,字母顺序必须是按照1 2 串的字母前后顺序。 DP代码太深奥 看不太透,这个代码比较好理解一点: 阅读全文
posted @ 2018-05-06 08:57 NoRain丶 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 明白队列的话就很简单,不会就慢慢理解慢慢学,我也是刚刚接触 代码: 阅读全文
posted @ 2018-04-25 19:38 NoRain丶 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 字符串基础用法题,包含有大数减法大数除法模板,不难理解,代码如下: 阅读全文
posted @ 2018-04-25 19:05 NoRain丶 阅读(106) 评论(0) 推荐(0) 编辑