思路:直接DP解的,方式固定。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int dp[100005]; 8 int coms[505]; 9 int value[505];10 int m...
分类:
其他好文 时间:
2015-04-17 23:47:24
阅读次数:
173
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ...
分类:
其他好文 时间:
2015-04-17 23:48:42
阅读次数:
140
我最近也在看chromium, 有这样的金典学习基文,转发大家分享。
分类:
其他好文 时间:
2015-04-17 23:49:00
阅读次数:
146
/// /// 获取客户端的IP地址/// /// public static string ClientIP(){ string result = String.Empty; result = HttpContext.Current.Request.ServerVariables["H...
分类:
其他好文 时间:
2015-04-17 23:45:53
阅读次数:
118
转自http://www.cnblogs.com/zhuhongbao/archive/2013/06/04/3118061.htmlNginx安装部署Nginx ("engine x")是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP代理服务器。Nginx是由Igor ...
分类:
其他好文 时间:
2015-04-17 23:45:39
阅读次数:
263
1.添加引用2.将ExcelRender.cs和SqlHelper.cs两个类拷贝到App_Code文件夹下3.写后台代码 eg:根据部门和日期导出成绩表 1 /// 2 /// 点击导出Excel 3 /// 4 /// 5 /// 6 prote...
分类:
其他好文 时间:
2015-04-17 23:45:45
阅读次数:
152
一个苦者找到一个和尚倾诉他的心事。他说:“我放不下一些事,放不下一些人。”和尚说:“没有什么东西是放不下的。”他说:“这些事和人我就偏偏放不下。”和尚让他拿着一个茶杯,然后就往里面倒热水,一直倒到水溢出来。苦者被烫到,马上松开了手。和尚说:“这个世界上没有什么事是放不下的,痛了,你自然就会放下。”其...
分类:
其他好文 时间:
2015-04-17 23:44:24
阅读次数:
148
Baruch S. Blumberg Institute Recruits World-Class Hepatitis B Scientists ‘All-star’ researchers intend to develop breakthrough therapies for the vir.....
分类:
其他好文 时间:
2015-04-17 23:44:31
阅读次数:
198
题目描述Description有一次,小鱼要从A处沿直线往右边游,小鱼第一秒可以游7米,从第二秒开始每秒游的距离只有前一秒的98%。有个极其邪恶的猎人在距离A处右边s米的地方,安装了一个隐蔽的探测器,探测器左右x米之内是探测范围。一旦小鱼进入探测器的范围,探测器就开始把信号传递给那个猎人,猎人在一秒...
分类:
其他好文 时间:
2015-04-17 23:44:49
阅读次数:
195
http://www.nlm.nih.gov/基因序列下载http://www.ncbi.nlm.nih.gov/genome/guide/human/resources.shtmlNLM TutorialWhat is the NLM?The National Library of Medicin...
分类:
其他好文 时间:
2015-04-17 23:43:17
阅读次数:
161
while (true) { Console.Write("请输入一个年份:"); int rn =Convert .ToInt32 ( Console.ReadLine()); //输入一个年份 //string s = ""; try //尝试,保护起来,使程序出错也能执行 { DateTim....
分类:
其他好文 时间:
2015-04-17 23:42:52
阅读次数:
130
实现目标 因为需求,想找一个在Ogre中好用的文本显示,经过查找和一些比对.有三种方案 一利用Overlay的2D显示来达到效果.http://www.ogre3d.org/tikiwiki/tiki-index.php?page=MovableTextOverlay 二重写Renderabl...
分类:
其他好文 时间:
2015-04-17 23:43:20
阅读次数:
290
题意:就是给了13张牌。问增加哪些牌可以胡牌。m是数字,s是条,p是筒,c是数字胡牌有以下几种情况:1、一个对子 + 4组 3个相同的牌或者顺子。 只有m、s、p是可以构成顺子的。东西南北这样的牌没有顺子。2、7个不同的对子。3、1m,9m,1p,9p,1s,9s,1c,2c,3c,4c,5c,6c...
分类:
其他好文 时间:
2015-04-17 23:41:02
阅读次数:
160
Catalan数/组合数取模 Aha!这题我突然灵光一现就想到Catalan数……就是按顺序安排1~2n这些数(以满足前两个条件)……分配到奇数位置上的必须比偶数位置上的多(要不就不满足第三个条件了) Catalan数可以用C(n,2n)/(n+1)直接求 但是这题P不保证是质数感觉很捉急啊=...
分类:
其他好文 时间:
2015-04-17 23:42:37
阅读次数:
210