04 2015 档案

摘要:转载:http://blog.csdn.net/zhengnz/article/details/6308773 阅读全文
posted @ 2015-04-13 21:39 PastLIFE 阅读(136) 评论(0) 推荐(0)
摘要: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:59 PastLIFE 阅读(149) 评论(0) 推荐(0)
摘要: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:39 PastLIFE 阅读(194) 评论(0) 推荐(0)
摘要: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 阅读(287) 评论(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 阅读(260) 评论(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 阅读(174) 评论(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 阅读(2087) 评论(0) 推荐(0)
摘要:转载:http://m.blog.csdn.net/blog/a511310132/13465985对于求次优解、第K优解类的问题,如果相应的最优解问题能写出状态转移方程、用动态规划解决,那么求次优解往往可以相同的复杂度解决,第K优解则比求最优解的复杂度上多一个系数K。其基本思想是将每个状态都表示成... 阅读全文
posted @ 2015-04-08 07:33 PastLIFE 阅读(170) 评论(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 阅读(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 阅读(123) 评论(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 阅读(185) 评论(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 阅读(147) 评论(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 阅读(121) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #define sc(x) scanf("%d", &x) 7 #define sc2(x,y) scanf("%d%d", &x, &y) 8 #define pf... 阅读全文
posted @ 2015-04-05 22:00 PastLIFE 阅读(132) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #define sc(x) scanf("%d", &x) 7 #define sc2(x,y) scanf("%d%d", &x, &y) 8 #define pf... 阅读全文
posted @ 2015-04-05 21:13 PastLIFE 阅读(11) 评论(0) 推荐(0)
摘要:给你m本书,每本a[i]页(0 2 #include 3 #include 4 #include 5 #define sc(x) scanf("%d", &x) 6 #define sc1(x) scanf("%lld", &x) 7 #define sc2(x,y) scanf("... 阅读全文
posted @ 2015-04-05 16:38 PastLIFE 阅读(141) 评论(0) 推荐(0)
摘要:比如 int g(int x) { return x + x; } int f() { return g(); } 这样f会调用g,然后g返回x + x给f,然后f继续把那个值返回给调用者。 如果g是inline的话。f会被直接编译成。 int f() { return x + x; } 相当于把g... 阅读全文
posted @ 2015-04-05 15:51 PastLIFE 阅读(263) 评论(0) 推荐(0)
摘要:主要是对于动态数组vector的用法1 基本操作(1)头文件#include.(2)创建vector对象,vector vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iterator it;for(it=vec.begin();it!=vec.en... 阅读全文
posted @ 2015-04-05 15:20 PastLIFE 阅读(110) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #define sc(x) scanf("%d", &x) 7 #define pf(x) printf("%d\n",x) 8 #define FOR(i,b,e)... 阅读全文
posted @ 2015-04-05 14:41 PastLIFE 阅读(135) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #define sc3(x,y,z) scanf("%lld%lld%lld", &x, &y, &z) 6 #define pf(x) printf("%lld\n",x) 7 #defi... 阅读全文
posted @ 2015-04-05 12:44 PastLIFE 阅读(129) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #define sc(x) scanf("%d",&x) 5 #define sc2(x,y) scanf("%d%d", &x, &y) 6 #define pf(x) printf("%d\n",x... 阅读全文
posted @ 2015-04-04 23:06 PastLIFE 阅读(133) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #define sc(x) scanf("%d",&x) 5 #define sc1(x) scanf("%lld",&x) 6 #define pf(x) printf("%d\n",x) 7 #def... 阅读全文
posted @ 2015-04-04 19:22 PastLIFE 阅读(126) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 //定义比较结构 8 struct cmp1 9 { 10 bool operator ()(int &a,int &b) 11... 阅读全文
posted @ 2015-04-04 19:02 PastLIFE 阅读(134) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #define sc(x) scanf("%d",&x) 6 #define pf(x) printf("%d\n", x) 7 #define FOR(i,b,e) for(int i=b; i ... 阅读全文
posted @ 2015-04-04 16:43 PastLIFE 阅读(148) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #define sc(x) scanf("%d",&(x)) 5 #define sc2(x,y) scanf("%d%d", &(x), &(y)) 6 #define pf(x) printf("%d\n", x) 7... 阅读全文
posted @ 2015-04-04 15:18 PastLIFE 阅读(138) 评论(0) 推荐(0)
摘要:1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 1010 1111 1212 1313 1414 1515 1616 1717 1818 1919 2020 2121 2222 2323 2424 2525 #include 26 #include 27 #include 28... 阅读全文
posted @ 2015-04-01 18:36 PastLIFE 阅读(90) 评论(0) 推荐(0)
摘要:qsort():原型:_CRTIMP void __cdeclqsort(void*, size_t, size_t,int (*)(const void*, const void*));解释: qsort ( 数组名 ,元素个数,元素占用的空间(sizeof),比较函数)比较函数是一个自己写的函数... 阅读全文
posted @ 2015-04-01 18:16 PastLIFE 阅读(156) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #define sc(x) scanf("%d",&(x)) 6 #define sc2(x,y) scanf("%d%d", &(x), &(y)) 7 #define pf(x) printf(... 阅读全文
posted @ 2015-04-01 14:36 PastLIFE 阅读(119) 评论(0) 推荐(0)