题解列表

筛选

C++_dfs容易理解

摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar……

非递归方法解决最长公共子序列

摘要:解题思路:使用二维数组来记录相等的情况,根据左边和上方的数字以及相等的情况来为二维数组赋值注意事项:起始项为【1,1】,所以要i-1,j-1;参考代码:#include <iostream>#incl……

新手简单快速解决!!!

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n = 0, x = 0, y = 0;    cin ……

2851: 合法C标识符

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

2946: 数制转换

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int bbb[20]; int main() {     int ……

2850: 输出亲朋字符串

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){    cin.getline(……