2020年2月4日
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 5 6 using namespace std; 7 8 const int max_n = 100 + 2; 9 const int max_w = 1e7 + 10; 阅读全文
posted @ 2020-02-04 11:12 带你AK,带你飞 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 5 using namespace std; 6 7 const int max_n = 100+2; 8 const int max_W = 10000+2; 9 10 阅读全文
posted @ 2020-02-04 10:21 带你AK,带你飞 阅读(104) 评论(0) 推荐(0) 编辑
  2020年2月3日
摘要: 1 #include <cstdio> 2 #include <iostream> 3 #include <cstring> 4 5 using namespace std; 6 7 const int max_n = 1000+10; 8 9 int n,m; 10 char s[max_n],t 阅读全文
posted @ 2020-02-03 20:58 带你AK,带你飞 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 递归 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 5 using namespace std; 6 7 const int max_n = 100+2; 8 9 int dp[max_n][max_n]; 10 i 阅读全文
posted @ 2020-02-03 17:15 带你AK,带你飞 阅读(358) 评论(0) 推荐(0) 编辑
  2020年2月2日
摘要: Fence Repair Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 76946 Accepted: 25167 Description Farmer John wants to repair a small length o 阅读全文
posted @ 2020-02-02 19:08 带你AK,带你飞 阅读(172) 评论(0) 推荐(0) 编辑
  2020年2月1日
摘要: Saruman's Army Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 20626 Accepted: 9988 Description Saruman the White must lead his army along 阅读全文
posted @ 2020-02-01 21:19 带你AK,带你飞 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 问题主题:区间调度问题 问题描述: 有n项工作,每项工作分别在si开始,ti结束。对每项工作,你都可以选择参加或不参加,但选择了参加某项工作就必须至始至终参加全程参与,即参与工作的时间段不能有重叠(即使开始的时间和结束的时间重叠都不行)。 限制条件: 1<=n<=100000 1<=si<=ti,= 阅读全文
posted @ 2020-02-01 08:37 带你AK,带你飞 阅读(145) 评论(0) 推荐(0) 编辑
  2020年1月31日
摘要: Your input is a series of rectangles, one per line. Each rectangle is specified as two points(X,Y) that specify the opposite corners of a rectangle. A 阅读全文
posted @ 2020-01-31 17:33 带你AK,带你飞 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Best Cow Line Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 46960 Accepted: 11949 Description FJ is about to take his N (1 ≤ N ≤ 2,000) c 阅读全文
posted @ 2020-01-31 12:01 带你AK,带你飞 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 迷宫问题 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 49149 Accepted: 26684 Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 阅读全文
posted @ 2020-01-31 10:20 带你AK,带你飞 阅读(209) 评论(0) 推荐(0) 编辑