题解列表

筛选

[递归]母牛的故事

摘要:#include<iostream>using namespace std;const int N=1000;int s[N],a[N],b[N],c[N],d[N];int main(){    s……

模拟,一道水题

摘要:```cpp #include using namespace std; int main(){ string s1, s2; cin >> s1 >> s2; int le……

双指针o(n)!!

摘要:```cpp #include using namespace std; int main(){ string s1; getline(cin, s1); int max_……

1514: 蓝桥杯算法提高VIP-夺宝奇兵

摘要:解题思路:这道题有点奇怪,有些条件没有说清楚,这里题人不能往右走,切只能往上走或者走左上角,既然这样就直接dp注意事项:当i==j的时候不能往上走,如果没有限制的话会超时参考代码:#include<b……