当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
2 0 0 1 6 0 3 0 3 4 0 4 0 0 2 1 0 2 0 3 0 4 0 1 1 1 2 1 3 1 4
Case #1: 14.00 Case #2: 13.00
Case #2: For the first shot, (0, 0)->(1, 0)->(2, 0)->(3, 0)->(4, 0) cost 4 energy; and (0, 0)->(1, 0)->(1, 1)->(1, 2)->(1, 3) cost 4 energy, too. But (0, 0)->(1, 0)->(1, 1)->(1, 2)->(1, 3)’s average distance to you(0, 0) is smallest(which is about 1.9531398), so we choose (0, 0)->(1, 0)->(1, 1)->(1, 2)->(1, 3) for the first shot.
Recommend | xubiao |
时间上限 | 内存上限 |
10000/5000MS(Java/Others) | 122768/62768K(Java/Others) |