1315: 田忌赛马 摘要:```cpp #include using namespace std; int b[10001],bb[10001]; long long sum,t; int main() { …… 题解列表 2023年05月03日 0 点赞 0 评论 495 浏览 评分:9.9
1314: 乘积最大 摘要:```cpp #include using namespace std; int _max(int *a,int n,int k) { if(k==0) { …… 题解列表 2023年05月03日 0 点赞 0 评论 563 浏览 评分:9.3
1312: 最大的算式 摘要:```cpp #include using namespace std; long long dp[16][16]; int sum[16]; int main() { int …… 题解列表 2023年05月03日 0 点赞 0 评论 725 浏览 评分: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 评论 539 浏览 评分:9.9
1347八皇后(C++)题解 摘要:写了很多次终于做出来了!解题思路:显然问题的关键在于如何判定某个皇后所在的行,列,斜线上是否有别的皇后可以从矩阵的特点上找到规律,如果在同一行,则行号相同;如果在同一列上,则列好相同;如果同在/斜线上…… 题解列表 2023年05月03日 0 点赞 0 评论 425 浏览 评分:9.0
飞机降落蓝桥杯 摘要:解题思路:// 错误点 // vis是否需要清0,不需要,最后回溯,完成清0// come use dw 关系// 主要到time取max(time,come[i]) ;; //如果time < co…… 题解列表 2023年05月03日 0 点赞 0 评论 2054 浏览 评分:8.5
位数问题C++题解 摘要:解题思路:方法1:排列组合(但需要运用动态规划)可以列出公式,在n个格子中放x个3(其中x为偶数,包括0)c(n,x)*9^(n-x)-c(n-1,x)*9^(n-x-1)含义为在n个格子中取x个3,…… 题解列表 2023年05月03日 0 点赞 0 评论 787 浏览 评分:6.0
1310: 表达式计算4 摘要:```cpp #include #include using namespace std; stacknum; stackop; int qmi(int a,int b) { …… 题解列表 2023年05月03日 0 点赞 0 评论 504 浏览 评分:9.9
对称二叉树(tree_c) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; string a; int s,s1; int main() { …… 题解列表 2023年05月03日 0 点赞 0 评论 316 浏览 评分:8.0
慢慢分析,很简单 摘要:解题思路:#include<iostream>using namespace std;int main(){ int a,b,c,d; cin>>a; b=a%10; c=a/…… 题解列表 2023年05月03日 0 点赞 0 评论 374 浏览 评分:6.0