会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
淘友
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
12
下一页
2015年4月10日
DFS_组合序列
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define sc(x) scanf("%d",&(x)) 8 #define sc2(x,y) scanf("%d%d", &(x), &(y))...
阅读全文
posted @ 2015-04-10 18:29 PastLIFE
阅读(284)
评论(0)
推荐(0)
2015年4月9日
DFS 注意点
摘要: 1、打表问题 1 //1364495 2009-05-13 20:42:44 Time Limit Exceeded 2212 2000MS 232K 426 B C++ Wpl 2 3 //1364655 2009-05-13 21:03:44 Accepted 2212 0MS 204K 29...
阅读全文
posted @ 2015-04-09 16:28 PastLIFE
阅读(258)
评论(0)
推荐(0)
DP3_最长公共子序列
摘要: 1 using System; 2 namespace ConsoleApplication2 3 { 4 public class Program 5 { 6 static int[,] martix; 7 8 static string str...
阅读全文
posted @ 2015-04-09 13:33 PastLIFE
阅读(174)
评论(0)
推荐(0)
2015年4月8日
联想笔记本电脑怎么设置才能不要按功能键Fn
摘要: thinkpad E431是同时按住Fn和Esc(先Fn再Esc),就可以在按功能键时需要Fn和不需要Fn之间切换转载:http://zhidao.baidu.com/link?url=OFVL1bUt72q-xzZtdniFkX1qT3XQUivPdOi7mfm2nYzHkJdTmOZjfk2F_...
阅读全文
posted @ 2015-04-08 14:11 PastLIFE
阅读(2077)
评论(0)
推荐(0)
DP2_第K优解
摘要: 转载:http://m.blog.csdn.net/blog/a511310132/13465985对于求次优解、第K优解类的问题,如果相应的最优解问题能写出状态转移方程、用动态规划解决,那么求次优解往往可以相同的复杂度解决,第K优解则比求最优解的复杂度上多一个系数K。其基本思想是将每个状态都表示成...
阅读全文
posted @ 2015-04-08 07:33 PastLIFE
阅读(161)
评论(0)
推荐(0)
2015年4月7日
DP1
摘要: View Code 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int MAX = 1000; 7 int N, w[MAX], v[MAX], sum[MAX*MAX],i,num,n...
阅读全文
posted @ 2015-04-07 18:18 PastLIFE
阅读(221)
评论(0)
推荐(0)
算法第一讲_动态规划
摘要: 转自follow your hearthttp://www.cnblogs.com/kkgreen/archive/2011/06/26/2090702.html练题场所:http://m.blog.csdn.net/blog/xiao_code_or_code/26282633转载:http://...
阅读全文
posted @ 2015-04-07 16:04 PastLIFE
阅读(120)
评论(0)
推荐(0)
2015年4月6日
CodeForces 487A Fight the Monster
摘要: 1 #include 2 #include 3 using namespace std; 4 int judge(int hy,int ay,int dy,int hm,int am,int dm)//计算特定的攻击与防御之下,需要加多少hp 5 { 6 if(am t2)17 ...
阅读全文
posted @ 2015-04-06 15:17 PastLIFE
阅读(184)
评论(0)
推荐(0)
HDU 2899 Strange fuction
摘要: 1 #include 2 #include 3 #include 4 #define sc(x) scanf("%d",&(x)) 5 #define sc1(x) scanf("%lf",&(x)) 6 #define pf(x) printf("%.4lf\n", x) 7 using ...
阅读全文
posted @ 2015-04-06 12:32 PastLIFE
阅读(145)
评论(0)
推荐(0)
2015年4月5日
lower_bound() 与 upper_bound()
摘要: #include #include //必须包含的头文件using namespace std;int main(){int point[10] = {1,3,7,7,9};int tmp = upper_bound(point, point + 5, 7) - point;//按从小到大,7最多能...
阅读全文
posted @ 2015-04-05 22:03 PastLIFE
阅读(118)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
12
下一页
公告