随笔分类 -  dfs

CodeForces 489C Given Length and Sum of Digits... (dfs)
摘要:C. Given Length and Sum of Digits...time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a po... 阅读全文
posted @ 2014-11-20 03:07 someblue 阅读(256) 评论(0) 推荐(0)
FZU 2057 家谱(dfs)
摘要:Problem 2057 家谱Accept: 129Submit: 356Time Limit: 1000 mSecMemory Limit : 32768 KBProblem Description由于计划生育的实行,我们以及将来几代人都会是独生子女,即每对夫妇只会有一个孩子。那么给你XXXX年某... 阅读全文
posted @ 2014-10-24 11:09 someblue 阅读(258) 评论(0) 推荐(0)
hdu4366 Successor (dfs序+zkw线段树)
摘要:SuccessorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2559Accepted Submission(s): 613Problem De... 阅读全文
posted @ 2014-10-11 14:17 someblue 阅读(611) 评论(0) 推荐(0)
hdu 4123 Bob’s Race (dfs树上最远距离+RMQ)
摘要:C -Bob’s RaceTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4123DescriptionBob wants to hold a race to enco... 阅读全文
posted @ 2014-10-10 21:15 someblue 阅读(270) 评论(0) 推荐(0)
CodeForces 467D(267Div2-D)Fedor and Essay (排序+dfs)
摘要:D. Fedor and Essaytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter you had helped Fedor to ... 阅读全文
posted @ 2014-09-23 18:16 someblue 阅读(526) 评论(1) 推荐(0)
ural 1500 Pass Licenses (状态压缩+dfs)
摘要:1500. Pass LicensesTime limit: 2.5 secondMemory limit: 64 MBA New Russian Kolyan believes that to spend his time in traffic jams is below his dignity.... 阅读全文
posted @ 2014-08-28 09:43 someblue 阅读(303) 评论(0) 推荐(0)
sgu 321 The Spy Network (dfs+贪心)
摘要:321. The Spy NetworkTime limit per test: 0.5 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardThe network of spies consists ofNint... 阅读全文
posted @ 2014-08-25 23:08 someblue 阅读(377) 评论(0) 推荐(0)