2690: 蓝桥杯2022年第十三届省赛真题-重新排序 摘要:参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { public static void…… 题解列表 2023年03月26日 0 点赞 0 评论 590 浏览 评分:9.3
1072: 汽水瓶 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include…… 题解列表 2023年03月26日 0 点赞 0 评论 295 浏览 评分:0.0
自定义函数之字符串连接(單個100字符內) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void fun_0(char *a,char *b,char *c,int len_a,int len_b);//函數聲明 in…… 题解列表 2023年03月26日 0 点赞 0 评论 402 浏览 评分:9.9
加油,双指针真快 摘要:解题思路:双指针注意事项:使用两重循环发现有6个数据超时,找出全部子串进行比较又内存超过限制。使用双指针成为最优解,注意理解while循环的内容,这是核心。可以参考b站up关于42号星球的讲解视频。,…… 题解列表 2023年03月26日 0 点赞 0 评论 469 浏览 评分:9.9
py最多82分此题 摘要:解题思路:注意事项:参考代码:n,m,x=map(int,input().split())a=[0]+list(map(int,input().split()))dp=[0]*100010hash=[…… 题解列表 2023年03月26日 0 点赞 0 评论 537 浏览 评分:4.7
自定义函数 摘要:def fact(n): x=1 for i in range(1,n+1): x=x*i return x def mypow(x,n): …… 题解列表 2023年03月26日 0 点赞 0 评论 417 浏览 评分:0.0
python不同单词个数统计 摘要:解题思路:set去重注意事项:参考代码:L = list(map(str,input().split()))L = list(set(L))print(len(L))…… 题解列表 2023年03月26日 0 点赞 0 评论 408 浏览 评分:0.0
水仙花数判断 摘要:for i in range(1,9): for j in range(0,9): for k in range(0,9): if i*100+j*10+k=…… 题解列表 2023年03月26日 0 点赞 0 评论 393 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-糖果 状态压缩dp 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class 糖果 { static int[] dp…… 题解列表 2023年03月26日 0 点赞 0 评论 368 浏览 评分:0.0
蓝桥杯2017年第八届真题-包子凑数 (背包DP) 摘要:####解题思路 设有 N 个蒸笼,每个蒸笼能装 $$A_1, A_2,\dots, A_N$$ 个包子。 1.当 $$gcd(A_1, A_2,\dots, A_N)!=1$$ 时,则都不互质,…… 题解列表 2023年03月26日 0 点赞 0 评论 596 浏览 评分:9.9