1481: 蓝桥杯算法提高VIP-剪刀石头布 python 摘要:解题思路:基础if else语句注意事项:无参考代码:list1 = list(map(int,input().split())) if list1[0] == 0: if list1[1…… 题解列表 2021年04月20日 0 点赞 0 评论 280 浏览 评分:0.0
直接计算(Python) 摘要:import mathT=int(input())zt=1for i in range(2,int(math.sqrt(T))+1): if T % i==0: zt=0 …… 题解列表 2021年04月20日 0 点赞 0 评论 286 浏览 评分:0.0
直接查找输出(Python) 摘要:while 1: s=input() if len(s)==0: break list1=list(s) if len(list1)<101: ma…… 题解列表 2021年04月20日 0 点赞 0 评论 274 浏览 评分:0.0
直接循环(Python) 摘要:while 1: list1=list(map(float,input().split())) if len(list1)==0: break P=list1[0]/1…… 题解列表 2021年04月20日 0 点赞 0 评论 410 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 python 摘要:解题思路:python的基本用法,没什么好说的注意事项:无参考代码:a,b,c = map(int,input().split()) S=(a+b+c)/2 area = (S*(S-a)*(S-…… 题解列表 2021年04月20日 0 点赞 0 评论 381 浏览 评分:0.0
python解出来了 摘要:解题思路:注意事项:参考代码:ls=[]ls = list(input().strip().split())z = len(ls[0])b = 0for i in ls: if len(i) >…… 题解列表 2021年04月17日 0 点赞 0 评论 210 浏览 评分:0.0
分解质因数暴力法(python) 摘要:解题思路:先构建一个ls数组,将3到b+1所有的素数找出并存入,注意事项:参考代码:a,b=map(int,input().split())ls=list()ls.append(2)for i in …… 题解列表 2021年04月17日 0 点赞 0 评论 628 浏览 评分:9.9
FBI树【python】【顺序存储二叉树解法】 摘要:解题思路:顺序存储二叉树注意事项:参考代码: n=int(input()) s=input().strip() tree=['']*100000 # 存储每个节点的子串 …… 题解列表 2021年04月17日 0 点赞 0 评论 366 浏览 评分:9.9
信息学奥赛一本通T1265- 最长公共子序列题解(Python) 摘要:解题思路:DP解LCS,思路参考https://blog.csdn.net/weixin_40673608/article/details/84262695参考代码:a=input()b=input(…… 题解列表 2021年04月17日 0 点赞 0 评论 332 浏览 评分:9.0
等差数列[Python实现]定义函数方法 摘要:解题思路:定义一个求前n项和的函数注意事项:i从1~n,故range到n+1参考代码:def f(n): s = 0 for i in range(1,n+1): a = 3…… 题解列表 2021年04月17日 0 点赞 0 评论 662 浏览 评分:9.9