上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 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 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(151) 评论(0) 推荐(0) 编辑
摘要: thinkpad E431是同时按住Fn和Esc(先Fn再Esc),就可以在按功能键时需要Fn和不需要Fn之间切换转载:http://zhidao.baidu.com/link?url=OFVL1bUt72q-xzZtdniFkX1qT3XQUivPdOi7mfm2nYzHkJdTmOZjfk2F_... 阅读全文
posted @ 2015-04-08 14:11 PastLIFE 阅读(1921) 评论(0) 推荐(0) 编辑
摘要: 转载:http://m.blog.csdn.net/blog/a511310132/13465985对于求次优解、第K优解类的问题,如果相应的最优解问题能写出状态转移方程、用动态规划解决,那么求次优解往往可以相同的复杂度解决,第K优解则比求最优解的复杂度上多一个系数K。其基本思想是将每个状态都表示成... 阅读全文
posted @ 2015-04-08 07:33 PastLIFE 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(211) 评论(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 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页