1895: 蓝桥杯算法提高VIP-队列操作 摘要:解题思路:注意事项:参考代码:N = int(input()) queue = [] lenght = len(queue) for i in range(N): x = input(…… 题解列表 2024年04月10日 0 点赞 0 评论 413 浏览 评分:0.0
1474: 蓝桥杯基础练习VIP-阶乘计算 摘要:解题思路:注意事项:参考代码:n = int(input()) s = 1 for i in range(2, n + 1): s *= i print(s)…… 题解列表 2024年04月10日 0 点赞 0 评论 430 浏览 评分:0.0
1475: 蓝桥杯基础练习VIP-高精度加法 摘要:解题思路:注意事项:参考代码:a = int(input()) b = int(input()) print(a + b)…… 题解列表 2024年04月10日 0 点赞 0 评论 426 浏览 评分:0.0
编写题解 1118: Tom数 摘要:解题思路:注意事项:参考代码:while True: try: print(sum(list(map(int, input())))) except: …… 题解列表 2024年04月10日 1 点赞 0 评论 413 浏览 评分:0.0
2124: 信息学奥赛一本通T1259-求最长不下降序列(DP)指定输出顺序 摘要:解题思路:DP, 以i节点为结束的最长不下降序列 f[i] = max(f[i], f[j] + 1) j > 1 && j < i;注意事项:输出顺序小数优先:判断相等最长情况下, 采用小数优先 …… 题解列表 2024年04月10日 0 点赞 0 评论 277 浏览 评分:9.9
王牌花色最简单的写法(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> // 计算牌的点数 int dianshu(char *play) { in…… 题解列表 2024年04月10日 0 点赞 0 评论 195 浏览 评分:0.0
用两个链表,小于k1的链表逆序输出,大于k1的链表正序输出 摘要:解题思路:注意事项:参考代码:import java.util.ArrayList; import java.util.List; import java.util.Scanner; pub…… 题解列表 2024年04月09日 0 点赞 0 评论 249 浏览 评分:0.0
使用深度优先搜索DFS 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { static int[] arr=new int[4]; sta…… 题解列表 2024年04月09日 0 点赞 0 评论 186 浏览 评分:0.0