上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 43 下一页
摘要: 随机增量算法(a randomized incremental algorithm)#define sqr(x) ((x)*(x))#define EPS 1e-4struct P{ double x, y; P(double x, double y):x(x),y(y){} P(... 阅读全文
posted @ 2015-11-18 20:57 Pat 阅读(404) 评论(0) 推荐(0) 编辑
摘要: example POJ 2229 Ultra-QuickSortTime Limit: 7000MS Memory Limit: 65536KDescriptionIn this problem, you have to analyze a particular sorting algorith... 阅读全文
posted @ 2015-11-09 12:12 Pat 阅读(406) 评论(0) 推荐(0) 编辑
摘要: getchar()和scanf("%c")的功能都是从STDIN读一个字符,单论功能两者没有区别。但两者的返回值是有区别的:------------------------------------------------scanf()的详尽介绍请移步这里。----------------------... 阅读全文
posted @ 2015-11-07 19:40 Pat 阅读(1147) 评论(0) 推荐(0) 编辑
摘要: 传送门 Time Limit: 2000MS Memory Limit: 65536K Description Farmer John is an astounding accounting wizard and has realized he might run out of money to r 阅读全文
posted @ 2015-11-05 14:39 Pat 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 传送门 Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 14761 Accepted: 7407 Description The little cat is so famous, that many couples tramp o 阅读全文
posted @ 2015-10-29 22:04 Pat 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 38908 Accepted: 16170 Description Given two strings a and b we define a*b to be their conca 阅读全文
posted @ 2015-10-29 21:19 Pat 阅读(179) 评论(0) 推荐(0) 编辑
摘要: KMP算法是基本的字符串匹配算法,但是代码实现上有一些细节容易错。这篇随笔将认真总结一下。 KMP算法的核心是: The KMP algorithm searches for occurrences of a "word" W within a main "text string" S by emp 阅读全文
posted @ 2015-10-29 19:45 Pat 阅读(443) 评论(0) 推荐(0) 编辑
摘要: time limit per test: 0.25 sec. memory limit per test: 65536 KB input: standard output: standard $\DeclareMathOperator{\XOR}{XOR}$ The sequence of non- 阅读全文
posted @ 2015-10-24 10:19 Pat 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 传送门 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 在上一回中,小Hi和小Ho趁着便利店打折,买了一大堆零食。当他们结账后,看到便利店门口还有其他的活动。 店主:买了东西还可以参加游戏活动哦,如 阅读全文
posted @ 2015-10-23 00:01 Pat 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 传送门 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 小Ho:喂不得了啦,那边便利店的薯片半价了! 小Hi:啥?! 小Ho:那边的便利店在打折促销啊。 小Hi:走走走,赶紧去看看=v= 于是小Hi 阅读全文
posted @ 2015-10-22 20:33 Pat 阅读(471) 评论(1) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 43 下一页