1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:a = [[0 for i in range(3)] for j in range(3)]z = f = 0for i in range(3): a[i] = in…… 题解列表 2021年07月05日 0 点赞 0 评论 366 浏览 评分:8.0
[编程入门]二维数组的转置 python初学 摘要:解题思路: 对于一个数组, 输出时 只需将 行变为列,列变为行即可注意事项: python 二维数组的输入参考代码:a&nb 题解列表 2021年07月04日 0 点赞 2 评论 661 浏览 评分:9.9
1219: 数列排序 摘要:```python n = int(input()) for i in range(n): st1, st2 = '', '' lis = list(map(str, inpu…… 题解列表 2021年06月20日 0 点赞 0 评论 277 浏览 评分:0.0
蓝桥杯算法训练VIP-矩阵加法 (python) 摘要:解题思路:这个网站对写python的太不友好了,都没有答案,还得自己写,哭了哭了注意事项:参考代码:N,M = map(int,input().split())l = []l2 = []for i i…… 题解列表 2021年06月18日 0 点赞 0 评论 396 浏览 评分:0.0
明明的随机数-python简单解决 摘要:1、用map()高阶函数解决输入问题; 2、使用集合特性去重; 3、列表函数直接排序; ```python n = int(input()) l = set(map(int, input()…… 题解列表 2021年06月18日 0 点赞 0 评论 633 浏览 评分:0.0
数组的距离 摘要: ```python from math import fabs a, b = input().split() l1 = list(map(int,input().split())) l…… 题解列表 2021年06月18日 0 点赞 0 评论 584 浏览 评分:9.9
1162: 密码(判断密码是否合规) 摘要:```python #将四种不同类型的字符存在四个列表中,长度符合要求的情况下判断密码的字符种类是否有3种及以上。 #(易错点,读入的密码是以字符形式存储的,因此数字0-9的这类对应的列表中也应该…… 题解列表 2021年06月17日 0 点赞 1 评论 594 浏览 评分:9.9
回文数(二) 判断回文数(简单易懂) 摘要:```python # 判断回文数 def ishuiwen(a): b = (str(a)[::-1]) if b == str(a): return 1…… 题解列表 2021年06月17日 0 点赞 0 评论 685 浏览 评分:9.9
[出圈]幸存者问题 摘要:解题思路:注意事项:参考代码:while True: try: a, b = map(int, input().strip().split()) l = [i for…… 题解列表 2021年06月17日 0 点赞 0 评论 385 浏览 评分:0.0
素数问题python 摘要:解题思路:注意事项:参考代码:n = int(input())if n == 1: print(0)else: flag = 1 for j in range(2,n//2+1): …… 题解列表 2021年06月17日 0 点赞 0 评论 573 浏览 评分:0.0