上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: http://218.28.220.249:50015/JudgeOnline/problem.php?id=1262 1262: 魔法宝石 题目描述 小s想要创造n种魔法宝石。小s可以用ai的魔力值创造一棵第i种魔法宝石,或是使用两个宝石合成另一种宝石(不消耗魔力值)。请你帮小s算出合成某种宝石的 阅读全文
posted @ 2017-04-24 20:45 爱记录一切美好的微笑 阅读(229) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1495 非常可乐 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s 阅读全文
posted @ 2017-04-18 20:37 爱记录一切美好的微笑 阅读(219) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2612 Find a way Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submis 阅读全文
posted @ 2017-04-18 20:36 爱记录一切美好的微笑 阅读(485) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1426 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 30731 Accepted: 12788 Special Judge Description Given a posi 阅读全文
posted @ 2017-04-18 20:32 爱记录一切美好的微笑 阅读(660) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2251 Dungeon Master Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 32885 Accepted: 12601 Description You are tra 阅读全文
posted @ 2017-04-18 20:29 爱记录一切美好的微笑 阅读(183) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std; typedef struct node { node():data(' '), lchild(NULL), rchild(NULL) {} char data; struct node* lchild; stru... 阅读全文
posted @ 2017-04-14 20:53 爱记录一切美好的微笑 阅读(102) 评论(0) 推荐(0) 编辑
摘要: /**由前序遍历和中序遍历得到层次遍历序列**/ #include #include #include #include #include #include using namespace std; const int maxn=107; int T[maxn], n; int preorder[maxn], inorder[maxn]; void BuildTree(int root, ... 阅读全文
posted @ 2017-04-14 20:52 爱记录一切美好的微笑 阅读(265) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include using namespace std; const int maxn=107; typedef struct node { node():height(0), lchild(NULL), rchild(NULL) {} int data; i... 阅读全文
posted @ 2017-04-14 20:49 爱记录一切美好的微笑 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include const int maxn=1007; const int INF=0x3f3f3f3f; using namespace std; typedef struct node { char ch; int weight; int parent, lchild, r... 阅读全文
posted @ 2017-04-14 20:49 爱记录一切美好的微笑 阅读(144) 评论(0) 推荐(0) 编辑
摘要: C++队列是一种容器适配器,它给予程序员一种先进先出(FIFO)的数据结构。1.back() 返回一个引用,指向最后一个元素2.empty() 如果队列空则返回真3.front() 返回第一个元素4.pop() 删除第一个元素5.push() 在末尾加入一个元素6.size() 返回队列中元素的个数 阅读全文
posted @ 2017-04-13 17:38 爱记录一切美好的微笑 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页