
DFS
文章平均质量分 82
小小小小葱
这个作者很懒,什么都没留下…
展开
-
hdu5379 Mahjong tree DFS 多校联合第七场
Mahjong treeTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 939 Accepted Submission(s): 294Problem DescriptionLittle sun is an ar原创 2015-08-12 16:03:35 · 450 阅读 · 0 评论 -
UVA 165 - Stamps
Stamps The government of Nova Mareterrania requires that various legal documents have stamps attached to them so that the government can derive revenue from them. In terms of recent legi原创 2013-08-01 19:08:23 · 574 阅读 · 0 评论 -
hdu5242 Game 上海邀请赛G题
Problem DescriptionIt is well known that Keima Katsuragi is The Capturing God because of his exceptional skills and experience in ''capturing'' virtual girls in gal games. He is able to play k games原创 2015-05-28 11:28:12 · 658 阅读 · 0 评论 -
ZOJ Problem Set - 3816 Generalized Palindromic Number 搜索+贪心
A number that will be the same when it is written forwards or backwards is known as a palindromic number. For example, 1234321 is a palindromic number.We call a number generalized palindromic number原创 2014-09-11 21:24:59 · 454 阅读 · 0 评论 -
Codeforces Round #300 E. Demiurges Play Again
E. Demiurges Play Againtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDemiurges Shambambukli and Mazukta love to wa原创 2015-05-02 22:06:06 · 896 阅读 · 0 评论 -
uva1267 - Network 无根树转化有根树 树形DFS
Consider a tree network with n nodes where the internal nodes correspond to servers and the terminal nodes correspond to clients. The nodes are numbered from 1 ton . Among the servers, there is an o原创 2014-01-30 14:22:10 · 721 阅读 · 0 评论