思维
文章平均质量分 60
sorrythanku
这个作者很懒,什么都没留下…
展开
-
勇者斗恶龙(uva11292)
勇者斗恶龙(The Dragon of Loowater, UVa 11292)你的王国里有一条n个头的恶龙,你希望雇一些骑士把它杀死(即砍掉所有头)。村里有m个骑士可以雇佣,一个能力值为x的骑士可以砍掉恶龙一个直径不超过x的头,且需要支付x个金币。如何雇佣骑士才能砍掉恶龙的所有头,且需要支付的金币最少?注意,一个骑士只能砍一个头(且不能被雇佣两次)。【输入格式】输入包含多组数据。每组数据的...原创 2018-12-06 09:39:19 · 369 阅读 · 0 评论 -
uva11538
11538 Chess QueenYou probably know how the game of chess is played and how chess queen operates. Two chess queensare in attacking position when they are on same row, column or diagonal of a chess bo...原创 2018-12-13 15:45:19 · 246 阅读 · 0 评论 -
uva11729 - Commando War
“Waiting for orders we held in the wood, word from the front never cameBy evening the sound of the gunfire was miles awayAh softly we moved through the shadows, slip away through the treesCrossing ...原创 2018-12-06 20:14:51 · 142 阅读 · 0 评论 -
uva11300 - Spreading the Wealth
“Waiting for orders we held in the wood, word from the front never cameBy evening the sound of the gunfire was miles awayAh softly we moved through the shadows, slip away through the treesCrossing ...原创 2018-12-06 21:08:28 · 126 阅读 · 0 评论 -
牛客练习赛5 A.Split
你有一个大小为原创 2019-04-08 17:20:49 · 194 阅读 · 0 评论