常用算法
文章平均质量分 87
一些基本的常用算法
Koakuma丶珏
受尽苦难而不厌,此乃阿修罗之道
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
codeforces672D(经典二分)
Robin Hoodtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe all know the impressive story of Robin Hood. R原创 2017-03-19 11:12:11 · 650 阅读 · 0 评论 -
king's trouble II (单调栈)
DescriptionLong time ago, a king occupied a vast territory.Now there is a problem that he worried that he want to choose a largest square of his territory to build a palace.Can you help him?For原创 2017-03-19 15:06:59 · 435 阅读 · 0 评论 -
POJ1064Cable master(二分, 精度控制)
Cable masterTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 43118 Accepted: 9233DescriptionInhabitants of the Wonderland have decided to hold a region原创 2017-03-22 13:31:18 · 467 阅读 · 0 评论 -
三分算法(解决先增后减或先减后增的搜索方法)
B. The Meeting Place Cannot Be Changedtime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe main road in Byt原创 2017-03-07 21:32:53 · 2148 阅读 · 0 评论 -
CODE【VS】2519 (模拟)
题目描述 Description北京2008奥运会将于2008年8月8日开幕,这可是我们中国的骄傲。想当年我们在争取2000年奥运会主办权惜败之后,终于有机会在今年扬眉吐气了。现在,我们每天都看到奥运的倒计时,各大网站都贴着“距奥运开幕还有XXX天”。现在我们自己也算一把,看一下从这个世纪开始的某一天,离我们的2008年奥运开幕还有多少天。输入描述 Input Desc原创 2017-04-11 20:29:22 · 479 阅读 · 0 评论 -
POJ 2559(第三届河南省程序设计大赛F题(单调栈应用))
Largest Rectangle in a HistogramTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 21082 Accepted: 6787DescriptionA histogram is a polygon composed of a原创 2017-03-19 14:24:48 · 644 阅读 · 0 评论 -
NYOJ-305-表达式求值(第四届河南省程序设计大赛C题(模拟+栈||递归)(sscanf函数的应用))
表达式求值时间限制:3000 ms | 内存限制:65535 KB难度:3描述Dr.Kong设计的机器人卡多掌握了加减法运算以后,最近又学会了一些简单的函数求值,比如,它知道函数min(20,23)的值是20 ,add(10,98) 的值是108等等。经过训练,Dr.Kong设计的机器人卡多甚至会计算一种嵌套的更复杂的表达式。假设表达式可以简单定原创 2017-04-24 18:27:06 · 572 阅读 · 0 评论
分享