破解简单密码(switch暴力破解) 摘要:```c #include #include void Decode(char* strs); char translate(char ch); int main() { char p…… 题解列表 2023年05月03日 0 点赞 0 评论 377 浏览 评分:10.0
查找最大元素(c语言代码) 摘要:解题思路:1.查找最大元素。2.插入字符串(max)。根据题目要求,我们可以将本程序分为几个部分,利用函数解决每一步的问题: #include #include …… 题解列表 2023年05月03日 1 点赞 0 评论 645 浏览 评分:9.9
1347八皇后(C++)题解 摘要:写了很多次终于做出来了!解题思路:显然问题的关键在于如何判定某个皇后所在的行,列,斜线上是否有别的皇后可以从矩阵的特点上找到规律,如果在同一行,则行号相同;如果在同一列上,则列好相同;如果同在/斜线上…… 题解列表 2023年05月03日 0 点赞 0 评论 385 浏览 评分:9.0
飞机降落蓝桥杯 摘要:解题思路:// 错误点 // vis是否需要清0,不需要,最后回溯,完成清0// come use dw 关系// 主要到time取max(time,come[i]) ;; //如果time < co…… 题解列表 2023年05月03日 0 点赞 0 评论 2029 浏览 评分: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 评论 758 浏览 评分:6.0
1310: 表达式计算4 摘要:```cpp #include #include using namespace std; stacknum; stackop; int qmi(int a,int b) { …… 题解列表 2023年05月03日 0 点赞 0 评论 477 浏览 评分:9.9
对称二叉树(tree_c) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; string a; int s,s1; int main() { …… 题解列表 2023年05月03日 0 点赞 0 评论 281 浏览 评分: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 评论 346 浏览 评分:6.0
7行C++代码实现 摘要:##注意事项 题目中需要保留两位小数,而C++中需要保留两位小数不像C那样,只需要printf("%0.2f",n);就可以实现 但也不是很繁琐,只需要添加头文件#include即可,在输出那里写…… 题解列表 2023年05月03日 0 点赞 0 评论 498 浏览 评分:9.9
题目1213幸运儿 摘要:解题思路:注意事项:参考代码:def f(li,li1): li3=[];li4=li1.copy() for j in range(1, len(li4), 2): li3…… 题解列表 2023年05月03日 0 点赞 0 评论 304 浏览 评分:0.0