!!!记住多行输入的方法!!! 摘要:解题思路:注意事项:参考代码:import syswhile True: line=sys.stdin.readline() if not line: break fo…… 题解列表 2022年06月20日 0 点赞 0 评论 230 浏览 评分:0.0
[编程入门]结构体之成绩统计2-python 摘要:def enter(Lis,n): for i in range(n): lis = [i for i in input().split(' ')] …… 题解列表 2022年06月20日 0 点赞 0 评论 420 浏览 评分:9.9
字符排序-题解(各语言代码) 摘要:**python** ```python for _ in range(int(input())):print(''.join(sorted(input()))) ``` **java** …… 题解列表 2022年06月18日 0 点赞 0 评论 341 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-字符统计(Python) 摘要:解题思路:注意事项:参考代码:s = input()a = sorted(list(set(s)))a.sort(reverse=True,key=lambda x:s.count(x))print(…… 题解列表 2022年06月17日 0 点赞 0 评论 512 浏览 评分:5.3
编写题解 1018: [编程入门]有规律的数列求和-递归 摘要:解题思路:注意事项:参考代码:n=int(input())f1=1f2=2s=f2/f1for i in range(2,n+1): f1,f2=f2,f1+f2 s=s+f2/f1pri…… 题解列表 2022年06月16日 0 点赞 0 评论 342 浏览 评分:0.0
题解 1909: 蓝桥杯算法提高VIP-拿糖果-python 摘要:解题思路:动态规划注意事项:注意超时!参考代码:import mathdef zys(n,zs): #计算质因数 res =[] d = math.sqrt(n) for i in…… 题解列表 2022年06月16日 0 点赞 0 评论 270 浏览 评分:9.9
编写题解 1669: 求圆的面积 摘要:解题思路:导入math库,进行求面积之后,注意输出小数点后两位注意事项:导入math库参考代码:import matha = float(input())p = math.pis = a*a*ppri…… 题解列表 2022年06月16日 0 点赞 0 评论 869 浏览 评分:9.9
编写题解 1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:a = ['C', 'h', 'i', 'n', 'a']c = []for i in a…… 题解列表 2022年06月16日 0 点赞 0 评论 290 浏览 评分:7.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:a=int(input())sn=s=0i=1while i<=a: s=s+2*(10**(i-1)) sn=sn+s i+=1print(sn)…… 题解列表 2022年06月15日 0 点赞 0 评论 405 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:str1=input()mu,number,kong,n=0,0,0,0list=["0","1","2","3","4","5","6","7","8","9"]for…… 题解列表 2022年06月14日 0 点赞 0 评论 452 浏览 评分:0.0