1671:小九九(c++)双循环+if语句 摘要:解题思路:双循环+if语句//附上“%d*%d=%-3d”数据类型注意事项:判断语句if(i>=j)用于输出矩阵中对角线以下的数据参考代码:#include<iostream>#include<cst…… 题解列表 2023年05月04日 0 点赞 0 评论 449 浏览 评分:9.9
1318: 选课(c++代码) 摘要:```cpp #include #include using namespace std; const int maxn=301; int f[maxn][maxn],bro[maxn],s…… 题解列表 2023年05月03日 0 点赞 0 评论 458 浏览 评分:9.0
1317: 最长公共子序列lcs 摘要:```cpp #include #include using namespace std; int main() { int dp[2002][2002]; memset…… 题解列表 2023年05月03日 0 点赞 0 评论 632 浏览 评分:9.9
1316: 最长不下降子序列的长度 摘要:```cpp #include using namespace std; int main() { int n,t,max=-1,a[5001],b[5001]; scan…… 题解列表 2023年05月03日 0 点赞 0 评论 423 浏览 评分:6.0
1315: 田忌赛马 摘要:```cpp #include using namespace std; int b[10001],bb[10001]; long long sum,t; int main() { …… 题解列表 2023年05月03日 0 点赞 0 评论 452 浏览 评分:9.9
1314: 乘积最大 摘要:```cpp #include using namespace std; int _max(int *a,int n,int k) { if(k==0) { …… 题解列表 2023年05月03日 0 点赞 0 评论 503 浏览 评分:9.3
1312: 最大的算式 摘要:```cpp #include using namespace std; long long dp[16][16]; int sum[16]; int main() { int …… 题解列表 2023年05月03日 0 点赞 0 评论 675 浏览 评分:9.9
1311: 数字三角形 摘要:```cpp #include using namespace std; int a[100][100],n; int f(int i,int j) { if(i==n) …… 题解列表 2023年05月03日 0 点赞 0 评论 491 浏览 评分:9.9
1347八皇后(C++)题解 摘要:写了很多次终于做出来了!解题思路:显然问题的关键在于如何判定某个皇后所在的行,列,斜线上是否有别的皇后可以从矩阵的特点上找到规律,如果在同一行,则行号相同;如果在同一列上,则列好相同;如果同在/斜线上…… 题解列表 2023年05月03日 0 点赞 0 评论 367 浏览 评分:9.0
飞机降落蓝桥杯 摘要:解题思路:// 错误点 // vis是否需要清0,不需要,最后回溯,完成清0// come use dw 关系// 主要到time取max(time,come[i]) ;; //如果time < co…… 题解列表 2023年05月03日 0 点赞 0 评论 2007 浏览 评分:8.5