摘要: 题目连接:https://www.patest.cn/contests/pat-a-practise/1014 原题如下: Suppose a bank has N windows open for service. There is a yellow line in front of the wi 阅读全文
posted @ 2017-01-26 09:49 变通无敌 阅读(118) 评论(0) 推荐(0)
摘要: 题目连接:https://www.patest.cn/contests/pat-a-practise/1007 原题如下: Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined 阅读全文
posted @ 2017-01-24 21:36 变通无敌 阅读(257) 评论(0) 推荐(0)
摘要: 题目连接:https://www.patest.cn/contests/pat-a-practise/1006 原题如下: At the beginning of every day, the first person who signs in the computer room will unlo 阅读全文
posted @ 2017-01-24 17:08 变通无敌 阅读(145) 评论(0) 推荐(0)
摘要: 题目连接:https://www.patest.cn/contests/pat-a-practise/1013 原题如下: It is vitally important to have all the cities connected by highways in a war. If a city 阅读全文
posted @ 2017-01-24 16:20 变通无敌 阅读(155) 评论(0) 推荐(0)
摘要: 题目连接:https://www.patest.cn/contests/pat-a-practise/1010 Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? 阅读全文
posted @ 2017-01-23 08:27 变通无敌 阅读(664) 评论(0) 推荐(0)
摘要: 原题连接:https://www.patest.cn/contests/pat-a-practise/1003 题目如下: As an emergency rescue team leader of a city, you are given a special map of your countr 阅读全文
posted @ 2017-01-18 23:55 变通无敌 阅读(177) 评论(0) 推荐(0)
摘要: 原题连接:https://www.patest.cn/contests/pat-a-practise/1004 题目如下: A family hierarchy is usually presented by a pedigree tree. Your job is to count those f 阅读全文
posted @ 2017-01-18 23:40 变通无敌 阅读(146) 评论(0) 推荐(0)
摘要: 原题连接:https://www.patest.cn/contests/pat-a-practise/1005 这道题我是将读入的数处理后进行相加,然后统计总数的位数,然后将总数不断的取余、模10,每次余数入栈,最后进行输出。 总的来说我的思路以及方法还是稍有繁琐,尤其是输出那块。代码如下: 1 # 阅读全文
posted @ 2017-01-18 23:07 变通无敌 阅读(187) 评论(0) 推荐(0)
摘要: 我就像在大海中的孤舟,看不到终点和岸边,也不知道该不该退回去。 还是简单的记录所得吧: opencv中的findContours http://blog.csdn.net/timidsmile/article/details/8519751threshold 阈值分割 http://www.open 阅读全文
posted @ 2017-01-15 22:12 变通无敌 阅读(95) 评论(0) 推荐(0)
摘要: 好难啊! 我觉得以我的水平,很难系统的将其学一遍,只能是看到哪不太懂查阅资料吧: Scalar:基本的绘图命令,与像素有关,相关的绘图命令在此有中文详解:http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/core/basic_ge 阅读全文
posted @ 2017-01-11 15:05 变通无敌 阅读(137) 评论(0) 推荐(0)