题解 2170: 信息学奥赛一本通T1247-河中跳房子

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

河中跳房子#自作聪明的约翰

摘要:解题思路:步骤分析:1.不移除任何岩石时,岩石之间的跳跃距离分别是:最短跳跃距离是 3。从起点到岩石 2:2从岩石 2 到岩石 11:9从岩石 11 到岩石 14:3从岩石 14 到岩石 17:3从岩……

T1247-河中跳房子

摘要: ```c++ #include #include using namespace std; const int MAXN = 1e5 + 5; int l,n,m,dis……

河中跳房子(C++)

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int L,N,M,a[10000];int f(int x){ int ans=0,t=0……