1518: 蓝桥杯算法提高VIP-寻找三位数(dfs) 摘要:解题思路:dfs也是比较暴力的算法,直接把1-9全排列都写出来,然后进行判断,提供一个全排列dfs模板吧参考代码:#include <stdio.h> int p[11]; int dp[1…… 题解列表 2022年02月24日 0 点赞 0 评论 533 浏览 评分:9.9
小小新手:DNA 摘要:```python n = int(input()) while n: a, b = map(int, input().split()) ss = [] j = 0 …… 题解列表 2022年02月24日 0 点赞 0 评论 562 浏览 评分:9.9
python-打水问题 摘要:解题思路:注意事项:参考代码:def f(n,m): A = [int(i) for i in input().strip().split()] A.sort() …… 题解列表 2022年02月24日 0 点赞 0 评论 683 浏览 评分:9.9
C++String类题解 摘要:解题思路:没啥思路,一步步来,我的代码应该还是很简单的注意事项:注意第一步要插入到a1前面而不是后面,删除操作需要从后往前遍历参考代码:#include<bits/stdc++.h>using nam…… 题解列表 2022年02月24日 0 点赞 0 评论 533 浏览 评分:9.9
大一小白一位 欢迎大佬点评!! 摘要:注意事项:循环条件得多考虑参考代码:int main(){ const float arr[3][3]={{0.40,0.20,0.15},{0.60,0.40,0.20},{0.80,0.50…… 题解列表 2022年02月24日 0 点赞 0 评论 405 浏览 评分:9.9
优质题解 python-找素数 摘要:解题思路:首先分析题目:问题1:数据较大,如果遍历依次判断素数的话,会超时。解决方法:埃拉托色尼筛选法。原文链接:https://blog.csdn.net/xiaoquantouer/article…… 题解列表 2022年02月25日 0 点赞 0 评论 835 浏览 评分:9.9
[编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;const int N = 100;char A[N];in…… 题解列表 2022年02月25日 0 点赞 0 评论 1511 浏览 评分:9.9
求长方形面积 摘要:#include<stdio.h>/*(长+宽)*2=周长 长*宽=面积*/int main(){int c,k;//定义长方形长变量为c,宽为变量kint C=0,S=0;//定义周长变量为C和…… 题解列表 2022年02月25日 0 点赞 2 评论 1201 浏览 评分:9.9
python-插入排序(格式有问题的可以看下) 摘要:解题思路:这道题样例输出格式给错了。那个剩下的9%的错误,就是当n = 5时按题目给的错误格式输出就好了(不缩进+最后一个move back中间空两格)注意事项:参考代码:def f(n): …… 题解列表 2022年02月25日 0 点赞 0 评论 682 浏览 评分:9.9
最简单的数字逆序输出 摘要:解题思路:正循环输入,反循环输出注意事项:参考代码:#include<stdio.h> int main() { int arr[10]; int i; for(i=0;i<10;i+…… 题解列表 2022年02月25日 0 点赞 0 评论 490 浏览 评分:9.9