1051: [编程入门]结构体之成绩统计2——超详细注释 摘要:解题思路:注意事项:参考代码:n = int(input())l = [[0] * 5]*n#列表赋初始值for i in range(n): l[i] = [_ for _ in input(…… 题解列表 2022年04月11日 0 点赞 0 评论 683 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录——六行代码 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): l = list(map(str,input().split())) for j in …… 题解列表 2022年04月11日 0 点赞 0 评论 576 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:import matha,b,c = map(int,input().split())delt = b**2-4*a*cif delt > 0: print("x1…… 题解列表 2022年04月11日 0 点赞 0 评论 642 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断(python超短易理解) 摘要:解题思路:注意事项:参考代码:for i in range(100, 1000): if pow(int(str(i)[0]), 3) + pow(int(str(i)[1]), 3…… 题解列表 2022年04月09日 0 点赞 0 评论 759 浏览 评分:8.0
编写题解 1011: [编程入门]最大公约数与最小公倍数(python) 摘要:解题思路:通过for循环求出最大公因数,再通过“最小公倍数=两数之积/最大公因数”得出最小公倍数注意事项:最后输出是整型参考代码:m, n = map(int, input().split(" "))…… 题解列表 2022年04月09日 0 点赞 0 评论 1281 浏览 评分:8.9
python入门题之温度转换 摘要:解题思路:先定义浮点型“f”然后括号输入,再写出温度转换的主要公式,之后输出c的时候记得用大括号,0,冒号,“.2f”是指后两位,然后连起来就是0后两位,也就是小数点后两位,' '这个…… 题解列表 2022年04月09日 0 点赞 0 评论 917 浏览 评分:2.0
利用calendar库中的weekday函数解决问题 摘要:解题思路:注意事项:参考代码:import calendaryear=int(input())a=0for i in range(1,13): if calendar.weekday(year,…… 题解列表 2022年04月09日 0 点赞 0 评论 640 浏览 评分:0.0
很是简单: 蓝桥杯2020年第十一届省赛真题-字符串编码 要求字典序最大,那么从左往右取数,能取两位数就取两位数转换成一个字母,这样字典序最大(即从左往右看,只要发现两个连着的数字在1到26之间就把这两个数换成字母,然后继续往后找)其他情况,自然是只能取一个数的情况,直接转换成字母就行```pythons=input()#A-Z65-90n=len(s)i= 题解列表 2022年04月09日 0 点赞 0 评论 756 浏览 评分:9.9
容易看懂 [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:a = int(input())b = 2c = 1d = 0f = 1for i in range(a): e = b/c d += e b += c…… 题解列表 2022年04月09日 0 点赞 0 评论 655 浏览 评分:0.0
直接替换字符串 摘要:import java.util.*;public class Main { static Scanner in = new Scanner(System.in); public stat…… 题解列表 2022年04月08日 0 点赞 0 评论 491 浏览 评分:0.0