[编程入门]分段函数求值-题解(Python代码) 摘要:```python x = int(input()) #输入一个数x if x < 1: y = x elif x >= 1 and x…… 题解列表 2020年03月18日 0 点赞 0 评论 2034 浏览 评分:6.8
[编程入门]三个数找最大值 (Python代码) 摘要:```python a, b, c= map(int,input().split()) # 表示的是一次能够输入多个值,依照空格进行分割。(输入不够三个数则不能按回车) sum = [a,b,…… 题解列表 2020年03月18日 0 点赞 0 评论 1432 浏览 评分:6.7
回文串 (Python代码) 摘要:a=input() //用reversed方法验证是否为回文形 b=list(reversed(a)) //最后进行判断 if list(a)== b: …… 题解列表 2020年03月18日 0 点赞 0 评论 737 浏览 评分:9.9
蓝桥杯算法训练VIP-数组查找及替换-题解(Python代码) 摘要:这道题主要考察对字母转数字的使用,这里我们要使用到chr()函数来把数字转换为字母,由于题目中指出,如果数字ASCII对于字母处在A-Z之间,则直接输出字母。 这道题要求删除被b整除的数,我们可以直…… 题解列表 2020年03月18日 0 点赞 0 评论 1201 浏览 评分:9.0
[编程入门]最大公约数与最小公倍数-题解(Python代码) 摘要: a,b=map(int,input().split()) x=min(a,b) o1=[] o2=[] for i in range(1,x+1): if a%i==0 and …… 题解列表 2020年03月18日 0 点赞 0 评论 547 浏览 评分:9.0
[STL训练]{A} + {B}-题解(Python代码) 摘要:运用python中的set内置类 while True: n,m=map(int,input().split()) a=set(map(int,input().spli…… 题解列表 2020年03月17日 0 点赞 0 评论 552 浏览 评分:9.9
求两个集合交集 -题解(Python代码) 摘要:运用python的内置类set a,b=map(int,input().strip().split()) c=set(map(int,input().strip().split()))…… 题解列表 2020年03月17日 0 点赞 0 评论 746 浏览 评分:9.9
陈教主的三角形 (Python代码) 摘要:三角形的构成条件为两边之和大于第三边,一个判断语句即可 ```python n = list(map(int,input().split())) while 1: if n[0] < …… 题解列表 2020年03月17日 0 点赞 0 评论 732 浏览 评分:5.0
程序员的表白-题解(Python代码) 摘要:这道题的思路比较简单,先看一下图片,主要可以把输出分为两部分。  对1、2、3的输出进行观察。 …… 题解列表 2020年03月17日 0 点赞 4 评论 2372 浏览 评分:9.1
蓝桥杯算法提高VIP-十进制数转八进制数 -题解(Python代码) 这为什么会出现在"普及题"里面??? 摘要:```python print(oct(int(input()))[2:]) ``` 这一行太简单,字数不够,不让我提交…… ```python num = int(input()) …… 题解列表 2020年03月16日 0 点赞 0 评论 688 浏览 评分:9.9