![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法拯救世界
Undefined variable
这个作者很懒,什么都没留下…
展开
-
HihoCoder - 1425 What a Beautiful Lake(水题)
HihoCoder - 1425 What a Beautiful LakeWeiming Lake, also named "Un-named Lake", is the most famous scenic spot in Peking University. It is located in the north of the campus and is surrounded by wal...原创 2016-11-21 15:56:00 · 805 阅读 · 0 评论 -
HDU-1002 A + B Problem II(大整数加法)
HDU-1002 A + B Problem II最简单的大数A+B,今天复习一下,顺手写一个博客。 题目有坑点,不过以前遇到过,所以也没啥了。大数A+B就是一个代码模拟自己手算A+B的过程,具体看代码和注释。原创 2016-12-19 15:56:26 · 248 阅读 · 1 评论 -
NYOJ-791 Color the fence (来源CodeForce)
NYOJ-791 Color the fence (贪心)Color the fence 时间限制:1000 ms | 内存限制:65535 KB 难度:2描述Tom has fallen in love with Mary. Now Tom wants to show his love and write a number on the fence opposite to Mary’s h原创 2016-11-23 21:40:56 · 275 阅读 · 0 评论 -
POJ-2387 Til the Cows Come Home(Dijsktra算法求最短路径)
POJ-2387 Til the Cows Come Home(Dijsktra算法求最短路径)原创 2017-01-08 15:59:07 · 756 阅读 · 0 评论 -
HDU-1253 胜利大逃亡(简单三维广搜BFS)
HDU-1253 胜利大逃亡(简单三维广搜BFS) Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡。原创 2017-01-08 21:05:07 · 329 阅读 · 0 评论 -
POJ-1915 Knight Moves(双向广搜BFS)
POJ-1915 Knight MovesKnight Moves Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 25321 Accepted: 11971Description Background Mr Somurolov, fabulous chess-gamer indeed, asser原创 2017-01-14 08:51:40 · 403 阅读 · 0 评论 -
POJ-2488 A Knight's Journey(深搜DFS)
POJ-2488 A Knight’s JourneyA Knight’s Journey Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 43097 Accepted: 14620Description Background The knight is getting bored of seein原创 2017-01-14 09:02:33 · 403 阅读 · 0 评论 -
POJ-3268 Silver Cow Party(最短路spfa算法)
POJ-3268 Silver Cow PartySilver Cow Party Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 19989 Accepted: 9128DescriptionOne cow from each of N farms (1 ≤ N ≤ 1000) convenientl原创 2017-01-14 09:19:29 · 326 阅读 · 0 评论