题解 1179: 上车人数

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

筛选

平行数组+递推

摘要:1.实在是不会找规律哈但是会模拟递归过程 反正计算是编译器的问题 关我程序设计什么事2.嵌套递归 具体表现是 n>=3:(1) An=A(n-1)+(up)A(n-2)(up这里表示上车人……

上车人数(模拟 + 递推)

摘要:解题思路:递推系数规律, 计算第二站上下车人数, 按照递推公式计算第x站人数注意事项:第n站下车的人数是第n-1站出发时的人数参考代码:#include<iostream>#inclu……

1179: 上车人数(有点意思)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a[100],b[100],c[100];//数组a上车……

1179: 上车人数

摘要:```cpp #include #include using namespace std; int main() { int a,n,m,x,b; while(cin>>……

上车人数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=1000+5; struct num{ int b1,b……