会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
KirinSB
努力,奋斗
首页
新随笔
联系
订阅
管理
上一页
1
···
34
35
36
37
38
39
40
41
42
下一页
2018年5月9日
hdu 1671 Phone List(字典树)题解
摘要: 题意:给一连串数字,如果有前缀重复给出NO,否则给出YES思路:这道题要delete否则爆内存,之前想的直接在insert()里解决查询有错误,所以先保存数据再查询。代码:#include#include#include#include#include#include...
阅读全文
posted @ 2018-05-09 22:40 KirinSB
阅读(129)
评论(0)
推荐(0)
2018年5月8日
HDU1251 统计难题 (字典树模板)题解
摘要: 思路:模板题,贴个模板代码:#include#include#include#include#include#include#include #include#include#include#include#include#include#define ll long...
阅读全文
posted @ 2018-05-08 22:51 KirinSB
阅读(88)
评论(0)
推荐(0)
2018年5月7日
POJ 2352 Stars(树状数组)题解
摘要: Language:DefaultStarsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 52268Accepted: 22486DescriptionAstronomers often examine...
阅读全文
posted @ 2018-05-07 20:29 KirinSB
阅读(316)
评论(0)
推荐(0)
2018年5月5日
POJ1128 Frame Stacking(拓扑排序+dfs)题解
摘要: DescriptionConsider the following 5 picture frames placed on an 9 x 8 array. ........ ........ ........ ........ .CCC....EEEEEE.. .......
阅读全文
posted @ 2018-05-05 21:39 KirinSB
阅读(264)
评论(0)
推荐(0)
2018年5月1日
POJ 3687 Labeling Balls(拓扑排序)题解
摘要: DescriptionWindy has N balls of distinct weights from 1 unit to N units. Now he tries to label them with 1 to N in such a way that:No ...
阅读全文
posted @ 2018-05-01 15:55 KirinSB
阅读(166)
评论(0)
推荐(0)
POJ 1270 Following Orders(拓扑排序)题解
摘要: DescriptionOrder is an important concept in mathematics and in computer science. For example, Zorn's Lemma states: ``a partially order...
阅读全文
posted @ 2018-05-01 14:10 KirinSB
阅读(323)
评论(0)
推荐(0)
2018年4月30日
poj 2481 Cows(树状数组)题解
摘要: DescriptionFarmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dime...
阅读全文
posted @ 2018-04-30 21:04 KirinSB
阅读(270)
评论(0)
推荐(0)
2018年4月28日
hdu 3874(树状数组)题解
摘要: Problem DescriptionMery has a beautiful necklace. The necklace is made up of N magic balls. Each ball has a beautiful value. The balls...
阅读全文
posted @ 2018-04-28 12:29 KirinSB
阅读(193)
评论(0)
推荐(0)
2018年4月24日
HDU 1811(并查集+拓扑排序)题解
摘要: Problem Description自从Lele开发了Rating系统,他的Tetris事业更是如虎添翼,不久他遍把这个游戏推向了全球。为了更好的符合那些爱好者的喜好,Lele又想了一个新点子:他将制作一个全球Tetris高手排行榜,定时更新,名堂要比福布斯富豪榜还...
阅读全文
posted @ 2018-04-24 17:03 KirinSB
阅读(370)
评论(0)
推荐(0)
2018年4月23日
HDU 1285 确定比赛名次(拓扑排序)题解
摘要: Problem Description有N个比赛队(1#include#include#include#include#include#include#include #include#include#include#include#include#define ll...
阅读全文
posted @ 2018-04-23 20:33 KirinSB
阅读(160)
评论(0)
推荐(0)
上一页
1
···
34
35
36
37
38
39
40
41
42
下一页