题解列表

筛选

最长不降子序列

摘要:解题思路:注意事项:不一定连续参考代码:#include<bits/stdc++.h>using namespace std;const int N=1005;int a[N],dp[N]……

c++解法(新手)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d……

c++解法(新手)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0……

广度优先搜索BFS(cx14a)

摘要:解题思路:从0开始遍历,即从第1行还是查找a[0][i]=1 && visited==0//按行查找矩阵为1,且为没有被遍历的元素//例如第一行的a[0][3]==1 &&am……

奥运奖牌计数

摘要:解题思路: 1、先定义一个整型变量 用来表示天数,使用scanf函数输入天数&n……

最高的分数

摘要:解题思路:注意事项:参考代码:int main(){ int n = 0; scanf("%d", &n);……