题解列表

筛选

[编程入门]自定义函数之数字后移

摘要:思路:定义两个数组,先用一个数组brr复制数组arr,对数组arr从最后一个开始各自向后移动m位(全部执行),去掉尾部“被顶出”的m个元素,从数组brr中取这m个数然后给数组arr的补上 参考代……

动态规划,清晰代码

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <unordered_map> int main() {     int n, m ,x;     s……

BFS+康托压缩

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;string s1,s2;int a[5][5],b[5][5];int jiecheng[10]={1,1,2,……

记忆化搜索博弈树

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,len;unordered_map<string,int> vis;//……