1635(c语言解法) 摘要:解题思路: 1.创建数组 2.指针指向数组3.每拿到一个数据指针就往后移注意事项:参考代码:#include<stdio.h>#define maxsize 10int main(){ i…… 题解列表 2024年03月24日 0 点赞 0 评论 368 浏览 评分:0.0
dfs 一行一行来 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int dx[9]={0,0,0,1,-1,1,1,-1,-1};const in…… 题解列表 2024年03月24日 0 点赞 1 评论 715 浏览 评分:7.3
使用递归,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;string t;int ans=0; bool dfs(int x,int y){ if(x…… 题解列表 2024年03月24日 0 点赞 0 评论 493 浏览 评分:0.0
考虑进去0和1 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ //判断一个数是否是素数 …… 题解列表 2024年03月24日 0 点赞 0 评论 451 浏览 评分:0.0
动态规划-python 摘要:解题思路:其实就是求最大不下降子序列和最大不上升子序列,我的r【i】数组表示以num【i】结尾的最长不降序子序列的长度,d【i】表示以num【i】开头的最大不上升子序列,就是先上后下类似于一个抛物线,…… 题解列表 2024年03月24日 1 点赞 0 评论 459 浏览 评分:9.9
快速幂模板,java 摘要:参考代码: import java.math.BigInteger; import java.util.Scanner; public class Main { public stat…… 题解列表 2024年03月24日 0 点赞 0 评论 453 浏览 评分:0.0
2236: 蓝桥杯算法训练-大小写转换 摘要:参考代码:s = list(input()) for i in range(len(s)): if s[i].isupper(): s[i] = s[i].lower()…… 题解列表 2024年03月24日 0 点赞 0 评论 732 浏览 评分:0.0
3163: 蓝桥杯2023年第十四届省赛真题-异或和之差(C++) 摘要:##暴力求解(40%): ```cpp #include using namespace std; typedef long long LL; const int N = 1e5 + 1…… 题解列表 2024年03月24日 1 点赞 0 评论 962 浏览 评分:9.9
辗转相除法求最小公倍数 摘要: #include #include int min_gbs(int n,int m) { int t; while(n%m) …… 题解列表 2024年03月24日 0 点赞 0 评论 427 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def select_sort(li): n = len(li) for i in range(n): # 多一次循环 for j in …… 题解列表 2024年03月24日 0 点赞 0 评论 457 浏览 评分:0.0