2867: 单词的长度 摘要:解题思路:注意事项:参考代码:a=input().split()length=0for i in a: length+=1 if length!=len(a): print(…… 题解列表 2024年01月26日 0 点赞 2 评论 240 浏览 评分:9.9
1033: [编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:a=input()s=[]for i in a: if i=="a" or i=="e" or i=="i" or i=="o" or i=="u": …… 题解列表 2024年01月25日 0 点赞 0 评论 112 浏览 评分:0.0
python解答,内容简洁易读 摘要:参考代码:def match_strings(s1, s2): i, j = 0, 0 while i < len(s1) and j < len(s2): if s1[i]…… 题解列表 2024年01月25日 0 点赞 0 评论 124 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-矩形拼接 摘要:解题思路:三个矩形进行拼接,最终组成的边数仅包含 3 种情况:1、4 条边,此时 3 个矩形可以组成 1 个大矩形,存在两种可能:三个矩形存在一条长度相同的边,这样可以按照这条边组成大矩形三个矩形中存…… 题解列表 2024年01月25日 2 点赞 0 评论 1105 浏览 评分:10.0
1069: 二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:n = int(input())matrix = []for _ in range(n): matrix.append(list(map(int, input().…… 题解列表 2024年01月24日 0 点赞 0 评论 141 浏览 评分:0.0
1056: 二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:注意细节就好F = int(input())C = (5 / 9) * (F - 32)print(f"{C:.2f}")…… 题解列表 2024年01月24日 0 点赞 0 评论 183 浏览 评分:0.0
1055: 二级C语言-进制转换 摘要:解题思路:注意事项:参考代码:def to_octal(num): if num == 0: return '0' octal_digits = [] …… 题解列表 2024年01月24日 0 点赞 0 评论 340 浏览 评分:9.9
2853: 字符替换 摘要:解题思路:注意事项:参考代码:a,b,c=input().split()d=a.replace(b,c)print(d)…… 题解列表 2024年01月24日 0 点赞 0 评论 121 浏览 评分:0.0
python解答,内容简洁易读 摘要:解题思路:根据题目要求一步一步来。注意事项:python中index(value)只能得到第一个重复元素的位置,需要翻转一下。参考代码:s = list(input().strip())command…… 题解列表 2024年01月24日 0 点赞 0 评论 118 浏览 评分:9.9
2770: 计算浮点数相除的余数 摘要:解题思路:注意事项:参考代码:a,b=map(float,input().split())c=a%bprint("%g"%c)…… 题解列表 2024年01月23日 0 点赞 0 评论 578 浏览 评分:8.3