上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 具体我参考了一下两位大神的方法: 1、http://www.chengxulvtu.com/2014/03/20/build-opencv-development-environment-based-on-vs2013.html2、http://blog.csdn.net/poem_qianmo/a 阅读全文
posted @ 2017-01-10 12:04 变通无敌 阅读(1012) 评论(0) 推荐(0)
摘要: 题目链接:https://www.patest.cn/contests/pat-a-practise/1002 原题如下: This time, you are supposed to find A+B where A and B are two polynomials. Input Each in 阅读全文
posted @ 2016-12-31 11:25 变通无敌 阅读(197) 评论(0) 推荐(0)
摘要: 原题连接:https://www.patest.cn/contests/pat-a-practise/1001 题目如下: Calculate a + b and output the sum in standard format -- that is, the digits must be sep 阅读全文
posted @ 2016-12-31 09:06 变通无敌 阅读(1135) 评论(0) 推荐(0)
摘要: 原题连接:https://pta.patest.cn/pta/test/16/exam/4/question/678 题目如下: Given any permutation of the numbers {0, 1, 2,..., N−1N-1N−1}, it is easy to sort the 阅读全文
posted @ 2016-12-20 12:39 变通无敌 阅读(1243) 评论(0) 推荐(0)
摘要: 原题连接:https://pta.patest.cn/pta/test/16/exam/4/question/677 题目如下: The ranklist of PAT is generated from the status list, which shows the scores of the 阅读全文
posted @ 2016-12-18 10:07 变通无敌 阅读(259) 评论(0) 推荐(0)
摘要: 原题连接:https://pta.patest.cn/pta/test/1342/exam/4/question/27102 题目如下: According to Wikipedia: Insertion sort iterates, consuming one input element each 阅读全文
posted @ 2016-12-06 09:51 变通无敌 阅读(774) 评论(0) 推荐(0)
摘要: 好长时间没写博客了,真心惭愧啊! 废话少说,原题链接:https://pta.patest.cn/pta/test/1342/exam/4/question/24939 题目如下: Given the relations of all the activities of a project, you 阅读全文
posted @ 2016-11-20 17:01 变通无敌 阅读(478) 评论(0) 推荐(0)
摘要: 汉诺塔比较经典的实现是利用递归,但也可以利用堆栈。 题意理解:有A,B,C三个柱子,将A柱子上的N个盘子(从大到小排列)移到C柱子上,每次只允许移动一个盘子,并且保证每个柱子上的盘子的排列都是从大到小。 1、递归实现 假设只有一个盘子,那么只需实现 A->C 这个动作; 如果有两个盘子,那么需要 ( 阅读全文
posted @ 2016-08-25 14:15 变通无敌 阅读(9952) 评论(4) 推荐(1)
摘要: 1、中缀(infix)表达式(expression)转换为后缀(postfix)表达式:(注:为了方便起见,表达式对象的输入输出均用空格分开) 首先需要从头到尾读取中缀表达式中的每一个对象,建立一个堆栈 (1)遇到操作数,直接输出; (2)遇到运算符,当该运算符大于栈顶运算符的优先级时,将该运算符压 阅读全文
posted @ 2016-08-24 11:15 变通无敌 阅读(897) 评论(0) 推荐(0)
摘要: 原题连接:https://www.patest.cn/contests/pat-a-practise/1051 题目: Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, .. 阅读全文
posted @ 2016-08-16 19:09 变通无敌 阅读(182) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页