上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: Problem Description On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally 阅读全文
posted @ 2017-10-11 17:27 抓不住Jerry的Tom 阅读(280) 评论(0) 推荐(0)
摘要: Input 第一行包含两个整数N和 M, 表示该无向图中点的数目与边的数目。 接下来M 行描述 M 条边,每行三个整数Si,Ti ,Di,表示 Si 与Ti之间存在 一条权值为 Di的无向边。 图中可能有重边或自环。 第一行包含两个整数N和 M, 表示该无向图中点的数目与边的数目。 接下来M 行描述 阅读全文
posted @ 2017-10-10 21:33 抓不住Jerry的Tom 阅读(219) 评论(0) 推荐(0)
摘要: Problem Description Matt is a big fan of logo design. Recently he falls in love with logo made up by rings. The following figures are some famous exam 阅读全文
posted @ 2017-10-09 23:08 抓不住Jerry的Tom 阅读(272) 评论(0) 推荐(0)
摘要: Description 相传,在远古时期,位于西方大陆的 Magic Land 上,人们已经掌握了用魔法矿石炼制法杖的技术。那时人们就认识到,一个法杖的法力取决于使用的矿石。一般地,矿石越多则法力越强,但物极必反:有时,人们为了获取更强的法力而使用了很多矿石,却在炼制过程中发现魔法矿石全部消失了,从 阅读全文
posted @ 2017-10-09 22:18 抓不住Jerry的Tom 阅读(165) 评论(0) 推荐(0)
摘要: Description Your friend to the south is interested in building fences and turning plowshares into swords. In order to help with his overseas adventure 阅读全文
posted @ 2017-10-08 21:24 抓不住Jerry的Tom 阅读(287) 评论(0) 推荐(0)
摘要: 题目描述 E.T. Inc. employs Maryanna as alien signal researcher. To identify possible alien signals and background noise, she develops a method to evaluate 阅读全文
posted @ 2017-10-08 20:14 抓不住Jerry的Tom 阅读(284) 评论(0) 推荐(0)
摘要: 题目描述 输入一个点 P 和一条圆弧(圆周的一部分),你的任务是计算 P 到圆弧的最短距离。换句话 说,你需要在圆弧上找一个点,到 P点的距离最小。 提示:请尽量使用精确算法。相比之下,近似算法更难通过本题的数据。 输入 输入包含最多 10000组数据。每组数据包含 8个整数 x1, y1, x2, 阅读全文
posted @ 2017-10-07 17:31 抓不住Jerry的Tom 阅读(1498) 评论(0) 推荐(0)
摘要: 题目描述 fqk 退役后开始补习文化课啦,于是他打开了数学必修一开始复习函数,他回想起了一次函数都是 f(x)=kx+b的形式,现在他给了你n个一次函数 fi(x)=kix+b,然后将给你m个操作,操作将以如下格式给出: 1.M i k b,把第i个函数改为 fi(x)=kx+b。 2.Q l r 阅读全文
posted @ 2017-09-30 22:31 抓不住Jerry的Tom 阅读(466) 评论(0) 推荐(0)
摘要: Description 众所周知,度度熊喜欢各类体育活动。 今天,它终于当上了梦寐以求的体育课老师。第一次课上,它发现一个有趣的事情。在上课之前,所有同学要排成一列, 假设最开始每个人有一个唯一的ID,从1到N,在排好队之后,每个同学会找出包括自己在内的前方所有同学的最小ID,作为自己评价这堂课的分 阅读全文
posted @ 2017-09-29 00:01 抓不住Jerry的Tom 阅读(211) 评论(0) 推荐(0)
摘要: Description 某天,Lostmonkey发明了一种超级弹力装置,为了在他的绵羊朋友面前显摆,他邀请小绵羊一起玩个游戏。游戏一开始,Lostmonkey在地上沿着一条直线摆上n个装置,每个装置设定初始弹力系数ki,当绵羊达到第i个装置时,它会往后弹ki步,达到第i+ki个装置,若不存在第i+ 阅读全文
posted @ 2017-09-28 22:33 抓不住Jerry的Tom 阅读(196) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页