2020年2月6日
摘要: “生命并不是你活了多少日子,而是你记住了多少日子。你要使你过的每一天都值得记忆。” “假如生命是乏味的,我怕有来生。假如生命是有趣的,今生已是满足的了。” “每一个不曾起舞的日子,都是对生命的辜负!” “人生!灯一般的明灭,漂浮在大海之中。” 黄昏时下雨,睡得极早,破晓听见钟声续续的敲着。 这钟声不 阅读全文
posted @ 2020-02-06 10:32 带你AK,带你飞 阅读(213) 评论(0) 推荐(0) 编辑
  2020年2月5日
摘要: Fence Repair Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 77001 Accepted: 25185 Description Farmer John wants to repair a small length o 阅读全文
posted @ 2020-02-05 17:35 带你AK,带你飞 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Expedition Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 30702 Accepted: 8457 Description A group of cows grabbed a truck and ventured on 阅读全文
posted @ 2020-02-05 17:06 带你AK,带你飞 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cstdio> 2 #include <iostream> 3 #include <queue> 4 5 using namespace std; 6 7 // 默认是最大堆 8 // 9 10 int main() 11 { 12 priority_queue<int> h 阅读全文
posted @ 2020-02-05 15:44 带你AK,带你飞 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cstdio> 2 #include <iostream> 3 4 using namespace std; 5 6 const int MAX_N = 1000; 7 8 // 用数组来实现二叉树 9 // 左儿子编号=自己*2 + 1 10 // 右儿子编号=自己*2 + 阅读全文
posted @ 2020-02-05 15:35 带你AK,带你飞 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cstdio> 2 #include <iostream> 3 4 using namespace std; 5 6 const int max_n = 1000+2; 7 const int max_m = 1000+2; 8 const int max_a = 1000+ 阅读全文
posted @ 2020-02-05 14:57 带你AK,带你飞 阅读(188) 评论(0) 推荐(0) 编辑
  2020年2月4日
摘要: 1 #include <iostream> 2 #include <cstdio> 3 4 using namespace std; 5 // 有关计数问题的dp 6 // 有n个无区别的物品,划分成不超过m组,求方法数取模M的余数 7 8 const int max_n=1000+2; 9 con 阅读全文
posted @ 2020-02-04 20:17 带你AK,带你飞 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1 // 前面我们用(n^2)复杂度dp求了最长公共子序列 2 // 当时dp数组定义如下: 3 // dp[i]:以末尾数结尾的最长公共子序列的长度 4 // 每次都利用前一次的结果,可以轻松求得以最后一个数为最结尾的最长公共子序列的长度 5 // if(a[i]>a[j] && dp[i]<=d 阅读全文
posted @ 2020-02-04 17:02 带你AK,带你飞 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cstdio> 2 #include <iostream> 3 4 using namespace std; 5 6 const int max_n = 1000 + 2; 7 const int max_a = 1e6 + 10; 8 9 int n; 10 int a[m 阅读全文
posted @ 2020-02-04 15:18 带你AK,带你飞 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 5 using namespace std; 6 7 8 const int max_n = 100 + 2; 9 const int max_a = 1e5 + 10; 阅读全文
posted @ 2020-02-04 14:58 带你AK,带你飞 阅读(130) 评论(0) 推荐(0) 编辑