02 2015 档案
解题报告——POJ 2002
摘要:SquaresTime Limit:3500MSMemory Limit:65536KTotal Submissions:16908Accepted:6425DescriptionA square is a 4-sided polygon whose sides have equal length ... 阅读全文
posted @ 2015-02-17 11:58 CodingPenguin 阅读(225) 评论(0) 推荐(0)
解题报告——POJ 2623
摘要:Sequence MedianTime Limit:1000MSMemory Limit:65536KTotal Submissions:15792Accepted:4409DescriptionGiven a sequence of N nonnegative integers. Let's de... 阅读全文
posted @ 2015-02-16 11:55 CodingPenguin 阅读(187) 评论(0) 推荐(0)
如何展开 Visual c + + 调试器监视窗口中的数组指针
摘要:如何展开 Visual c + + 调试器监视窗口中的数组指针概要从 Visual c + + 6.0 版开始就现在可以展开数组指向在 Visual c + + 调试器监视窗口中查看所有数组元素。此功能未记录。在监视窗口中键入...从 Visual c + + 6.0 版开始就现在可以展开数组指向在... 阅读全文
posted @ 2015-02-15 09:39 CodingPenguin 阅读(567) 评论(2) 推荐(0)
居然在不伤元气的情况下写出了基数排序-)
摘要:基数排序就不多说了,其思路如下:0. 输入为n个整数,每个数字为b位1. 把整数拆分为b/r“位”, 每个"位"的长度为r(十进制长度)2. 由低到高分别对每个“位”作计数排序值得一说的是,为使算法效率最高,r应该为lgn(取整),然而实现中没有限定r的大小,可以自行设定。不多说,上代码:(Radi... 阅读全文
posted @ 2015-02-14 19:03 CodingPenguin 阅读(155) 评论(0) 推荐(0)
解题报告——POJ 2299
摘要:Ultra-QuickSortTime Limit:7000MSMemory Limit:65536KTotal Submissions:44671Accepted:16240DescriptionIn this problem, you have to analyze a particular s... 阅读全文
posted @ 2015-02-11 16:57 CodingPenguin 阅读(123) 评论(0) 推荐(0)
解题报告——POJ 2726
摘要:Holiday HotelTime Limit:2000MSMemory Limit:65536KTotal Submissions:8204Accepted:3211DescriptionMr. and Mrs. Smith are going to the seaside for their h... 阅读全文
posted @ 2015-02-09 16:13 CodingPenguin 阅读(304) 评论(0) 推荐(0)
解题报告——POJ 1579
摘要:DescriptionWe all love recursion! Don't we?Consider a three-parameter recursive function w(a, b, c):if a 20 or b > 20 or c > 20, then w(a, b, c) retu... 阅读全文
posted @ 2015-02-09 16:04 CodingPenguin 阅读(151) 评论(0) 推荐(0)