小白随便写的,记录一下 摘要:```python # 利用map函数和list把输入转为int型列表 li = list(map(int, input().split())) li.sort() # 利用内置函数进行排序…… 题解列表 2024年03月24日 0 点赞 0 评论 382 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def select_sort(li): n = len(li) for i in range(n): # 多一次循环 for j in …… 题解列表 2024年03月24日 0 点赞 0 评论 442 浏览 评分:0.0
辗转相除法求最小公倍数 摘要: #include #include int min_gbs(int n,int m) { int t; while(n%m) …… 题解列表 2024年03月24日 0 点赞 0 评论 407 浏览 评分: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 评论 941 浏览 评分:9.9
2236: 蓝桥杯算法训练-大小写转换 摘要:参考代码:s = list(input()) for i in range(len(s)): if s[i].isupper(): s[i] = s[i].lower()…… 题解列表 2024年03月24日 0 点赞 0 评论 712 浏览 评分:0.0
快速幂模板,java 摘要:参考代码: import java.math.BigInteger; import java.util.Scanner; public class Main { public stat…… 题解列表 2024年03月24日 0 点赞 0 评论 430 浏览 评分:0.0
动态规划-python 摘要:解题思路:其实就是求最大不下降子序列和最大不上升子序列,我的r【i】数组表示以num【i】结尾的最长不降序子序列的长度,d【i】表示以num【i】开头的最大不上升子序列,就是先上后下类似于一个抛物线,…… 题解列表 2024年03月24日 1 点赞 0 评论 437 浏览 评分:9.9
考虑进去0和1 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ //判断一个数是否是素数 …… 题解列表 2024年03月24日 0 点赞 0 评论 428 浏览 评分:0.0
使用递归,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;string t;int ans=0; bool dfs(int x,int y){ if(x…… 题解列表 2024年03月24日 0 点赞 0 评论 470 浏览 评分: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 评论 693 浏览 评分:7.3