
POJ
文章平均质量分 74
RunMyBrain
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj1738 An old Stone Game 石子合并(归并) GarsiaWachs算法
Description There is an old stone game.At the beginning of the game the player picks n(1<=n<=50000) piles of stones in a line. The goal is to merge the stones in one pile observing the following ru原创 2013-07-31 16:18:00 · 2448 阅读 · 0 评论 -
poj1151 hdu1542 wikioi3044 Atlantis 矩形面积求并
题目大意:给定每个矩形的对角线的两个端点,让你求这些矩形的面积的并集,即重叠的不能重复计算 题目分析:这题就是典型的线段树求面积并 离散化:对所有节点的Y进行升序排序,然后以Y的位置建树,就是指,在线段树里面,左右节点的实际意义就是指这个线段在Y的升序数组里的位置,但是我们把lf,rf赋值为这个线段左右端点的具体值,这就是离散化 建树的细节:树的每个节点有lf,rf,cover,原创 2013-07-26 16:23:56 · 1584 阅读 · 0 评论 -
poj1833 排列 next_permutation函数
排列 Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 15089 Accepted: 6112 Description 题目描述: 大家知道,给出正整数n,则1到n这n个数可以构成n!种排列,把这些排列按照从小到大的顺序(字典顺序)列出,如n=3时,列出原创 2013-11-13 19:37:43 · 947 阅读 · 0 评论