c++暴力求解 摘要:#include<iostream>#include<algorithm>#include<string.h>using namespace std;int a[100010];int main(){…… 题解列表 2024年03月25日 1 点赞 1 评论 896 浏览 评分:9.9
小白也能看懂 摘要:解题思路:循环输入数组里的数据,里面设置一个空的变量t,用t来负责交换值,最后将数组按顺序输出即可注意事项:无参考代码:#include<stdio.h>int main(){ int N,M,…… 题解列表 2024年03月25日 0 点赞 0 评论 597 浏览 评分:9.9
小白随便写的,记录一下 ```pythondefsort_time(t_list):n=len(t_list)#传入一个时间列表foriinrange(n):t_list[i]=t_list[i].split('/')#桶排思想先排日期再排月份最后年份t_list.sort(key=lambdax:x[1])t_list.s 题解列表 2024年03月25日 0 点赞 0 评论 814 浏览 评分:0.0
2868: 最长最短单词 摘要:解题思路:注意事项:参考代码:s = input().split() s1 = [len(i) for i in s] max = max(s1) min = min(s1) for i in…… 题解列表 2024年03月25日 0 点赞 0 评论 755 浏览 评分:4.0
2867: 单词的长度 摘要:解题思路:注意事项:参考代码:s = input().split() s1 = [] for i in s: s1.append(len(i)) print(",".join(map(…… 题解列表 2024年03月25日 0 点赞 0 评论 686 浏览 评分:0.0
2865: 紧急措施 摘要:解题思路:注意事项:strip有神奇的魔力参考代码:email = input().strip() N = int(input()) arr = [] for i in range(N): …… 题解列表 2024年03月25日 0 点赞 0 评论 1116 浏览 评分:0.0
小白随便写的,记录一下 ```pythondefpartition(li):key=li[0]new_li=[]#从左找比key小的foriinli[::-1]:ifi=key:new_li.append(i)#输出列表内容foriinn 题解列表 2024年03月25日 0 点赞 0 评论 779 浏览 评分:0.0
C语言:switch语句 摘要:解题思路: 直接利用switch语句来实现注意事项:参考代码:#include<stdio.h>int main(){ int a,d; scanf("%d",&a); switch…… 题解列表 2024年03月25日 0 点赞 0 评论 514 浏览 评分:0.0
2866: 过滤多余的空格 解题思路:注意事项:参考代码:print("".join(input().split())) 题解列表 2024年03月25日 0 点赞 0 评论 732 浏览 评分:0.0
2864: 单词替换 摘要:解题思路:注意事项:参考代码:s = input().strip().split() s1 = input().strip() s2 = input().strip() a = [s2 if i…… 题解列表 2024年03月25日 0 点赞 1 评论 443 浏览 评分:0.0