蓝桥杯算法提高VIP-摆花 摘要:解题思路:注意事项:参考代码:n, m= map(int, input().split())t = [0]+list(map(int, input().split()))dp=[[0]*(m+1) f…… 题解列表 2024年03月26日 0 点赞 0 评论 186 浏览 评分:0.0
欧拉函数模板 摘要:参考代码: // 欧拉函数: φ(n) = n * (1 - 1/p1) * (1 - 1/p2) * ... * (1 - 1/pk) // 对于任意两个互质的正整数m和n,有φ(mn) = …… 题解列表 2024年03月27日 0 点赞 0 评论 267 浏览 评分:0.0
随便写写,记录一下 摘要:```python def turn_the_coin(s1, s2): new_s1 = list(s1) new_s2 = list(s2) change_func…… 题解列表 2024年03月27日 0 点赞 0 评论 316 浏览 评分:0.0
排序问题(2) 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))a.sort()b=a[::-1]for i in b: print(i,end=' …… 题解列表 2024年03月27日 0 点赞 0 评论 199 浏览 评分:0.0
pythonsfrbtrhtrhhfgbfdbfb 摘要:解题思路:注意事项:参考代码:t = int(input()) ans = 0for i in range(t): s = input() a = s.split() if a[0]=…… 题解列表 2024年03月27日 0 点赞 0 评论 246 浏览 评分:0.0
匹配字符串的个数 摘要: #include #include int main() { char s1[6]; char s2[81]; …… 题解列表 2024年03月27日 0 点赞 0 评论 238 浏览 评分:0.0
结构体输出成绩统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct stu{ char num[50]; char name[50]; …… 题解列表 2024年03月27日 0 点赞 0 评论 244 浏览 评分:0.0
猴子吃桃递归 摘要:话不多说直接进入正题 import java.util.Scanner; public class Main { public static voi…… 题解列表 2024年03月27日 0 点赞 0 评论 243 浏览 评分:0.0
猪鼻巴巴暴力法 摘要:解题思路:定义俩数组,一个是上一天,一个是今天上一天的每个点都判断,有细菌就把变化赋给今天的数组(有细菌就周围全加一倍自己加两倍),意思是只把变化赋给今天,昨天本来位置留着的细菌都四妹了然后把今天的再…… 题解列表 2024年03月27日 0 点赞 0 评论 217 浏览 评分:0.0
编写题解 2825: 计算多项式的值,python超简单 摘要:x,n = input().split() x = float(x) n = int(n) # 初始化result和item变量 result = 1.0 item = 1.0 # 使用…… 题解列表 2024年03月27日 0 点赞 0 评论 284 浏览 评分:0.0