小白随便写的,记录一下 摘要:```python # 注意的还是列表的输入 这里需要map和list一起接收一个int型的列表 li = list(map(int, input().split())) li.sort()…… 题解列表 2024年03月24日 0 点赞 0 评论 430 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python a = input() b = input() c = input() word = [a, b, c] word.sort() # sort函数可以对数字排序 也…… 题解列表 2024年03月24日 0 点赞 0 评论 672 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python # 利用map函数和list把输入转为int型列表 li = list(map(int, input().split())) li.sort() # 利用内置函数进行排序…… 题解列表 2024年03月24日 0 点赞 0 评论 244 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def select_sort(li): n = len(li) for i in range(n): # 多一次循环 for j in …… 题解列表 2024年03月24日 0 点赞 0 评论 334 浏览 评分:0.0
辗转相除法求最小公倍数 摘要: #include #include int min_gbs(int n,int m) { int t; while(n%m)…… 题解列表 2024年03月24日 0 点赞 0 评论 258 浏览 评分: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 评论 769 浏览 评分: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 评论 542 浏览 评分:0.0
快速幂模板,java 摘要:参考代码: import java.math.BigInteger; import java.util.Scanner; public class Main { public stat…… 题解列表 2024年03月24日 0 点赞 0 评论 234 浏览 评分:0.0
动态规划-python 摘要:解题思路:其实就是求最大不下降子序列和最大不上升子序列,我的r【i】数组表示以num【i】结尾的最长不降序子序列的长度,d【i】表示以num【i】开头的最大不上升子序列,就是先上后下类似于一个抛物线,…… 题解列表 2024年03月24日 1 点赞 0 评论 219 浏览 评分:9.9
考虑进去0和1 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ //判断一个数是否是素数 …… 题解列表 2024年03月24日 0 点赞 0 评论 258 浏览 评分:0.0