上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 题目链接: https://cn.vjudge.net/problem/POJ-2419 题目描述: If a tree falls in the forest, and there's nobody there to hear, does it make a sound? This classic 阅读全文
posted @ 2018-07-19 20:09 Reqaw 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/POJ-1740 题目描述: Alice and Bob decide to play a new stone game.At the beginning of the game they pick n(1<=n<=10) pi 阅读全文
posted @ 2018-07-19 20:02 Reqaw 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/POJ-2234 题目描述: Here is a simple game. In this game, there are several piles of matches and two players. The two pl 阅读全文
posted @ 2018-07-19 19:59 Reqaw 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/POJ-1067 题目描述: 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者 阅读全文
posted @ 2018-07-19 19:52 Reqaw 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/POJ-2262 题目描述: In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in whi 阅读全文
posted @ 2018-07-19 19:43 Reqaw 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-1572 Automatic Chemical Manufacturing is experimenting with a process called self-assembly. In this process, m 阅读全文
posted @ 2018-07-19 19:34 Reqaw 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-10562 Professor Homer has been reported missing. We suspect that his recent research works might have had some 阅读全文
posted @ 2018-07-18 09:12 Reqaw 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-10129 Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve 阅读全文
posted @ 2018-07-18 09:02 Reqaw 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1242 题目描述: Problem Description Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The p 阅读全文
posted @ 2018-07-16 18:24 Reqaw 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题目描述 As a landlocked country in central and southern Africa , the political situation has been relatively stable since the implementation of multi-par 阅读全文
posted @ 2018-06-03 17:23 Reqaw 阅读(430) 评论(2) 推荐(0) 编辑
摘要: 题目描述 如何设计一个好的数据库不仅仅是一个理论研究问题,也是一个实际应用问题。在关系数据库中不满足规范化理论的数据库设计会存在冗余、插入异常、删除异常等现象。 设R(U)是一个关系模式,U={ A1,A2, ……, An}。其中Ai是关系的属性,X,Y是U的子集。函数依赖 X->Y 定义了数据库中 阅读全文
posted @ 2018-06-03 17:20 Reqaw 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-1339 1 /* 2 问题 3 输入两个序列,问两个序列能否通过重排和一个字母照应而形成一个序列。 4 5 解题思路 6 既然可以通过某种照应使其相等,那么出现的是哪个字母就显得不是那么重要了,重要的是每个字母出现的次 阅读全文
posted @ 2018-06-03 17:16 Reqaw 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-514 1 /* 2 问题 3 输入猜测出栈顺序,如果可能输出Yes,否则输出No 4 5 解题思路 6 貌似没有直接可以判定的方法,紫书上给出的方法是在进行一个入栈出栈操作,看是否能够构成原始的入栈序列。 7 */ 8 阅读全文
posted @ 2018-06-03 17:15 Reqaw 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-442 1 /* 2 问题 3 输入有括号表示优先级的矩阵链乘式子,计算该式进行的乘法次数之和 4 5 解题思路 6 栈的应用,直接忽视左括号,每次只计算栈顶的两个矩阵会更加方便。 7 */ 8 #include<cst 阅读全文
posted @ 2018-06-03 17:13 Reqaw 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 /*关于C++ STL中deque的学习*/ 2 #include 3 #include 4 #include 5 6 using namespace std; 7 void print(deque d); 8 void rprint(deque d); 9 int main() 10 { 11 deque dq; 12 dq.push_back(1);... 阅读全文
posted @ 2018-06-03 17:10 Reqaw 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-122 1 /* 2 问题 3 给出每个节点的权值和路线,输出该二叉树的层次遍历序列。 4 5 解题思路 6 根据输入构建链式二叉树,再用广度优先遍历保存权值最后输出。 7 */ 8 #include<cstdio> 9 阅读全文
posted @ 2018-06-03 17:09 Reqaw 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-679 1 /* 2 问题 3 输入完全二叉树的层数D和有几个小球滚落,计算最后一个小球落入的叶子结点的小号。 4 5 解题思路 6 直接模拟超时,所以想想其他的办法。看看能不能直接计算最后一个小球的路线,可以知道前两个 阅读全文
posted @ 2018-06-03 17:06 Reqaw 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目链接 1 /* 2 问题 3 将一排盒子经过一系列的操作后,计算并输出奇数位置上的盒子标号之和 4 5 解题思路 6 由于数据范围很大,直接数组模拟会超时,所以采用数组模拟的链表,left[i]和right[i]分别表示i号盒子的左边是谁和右边 7 是谁。特别提醒,4这个操作可以采用其他的办法去 阅读全文
posted @ 2018-06-03 17:03 Reqaw 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/UVA-11988 1 /* 2 问题 将一段文本经过一定的规则处理后输出,规则就是[表示home键,表示光标跳到行首,]表示end键,表示光标跳到行末 3 4 解题思路 5 可以发现[]是可以嵌套的,采用纯模拟比较复杂,采用类 阅读全文
posted @ 2018-06-03 17:01 Reqaw 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://poj.org/problem?id=2607 Description A city is served by a number of fire stations. Some residents have complained that the distance from 阅读全文
posted @ 2018-05-24 08:45 Reqaw 阅读(245) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页