编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:n = int(input()) arr = [list(map(int, input().split())) for _ in range(n)] x, y = 0…… 题解列表 2024年04月17日 0 点赞 0 评论 310 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:arr = [list(map(int, input().split())) for _ in range(3)] x, y = 0, 0 for i in rang…… 题解列表 2024年04月17日 0 点赞 0 评论 283 浏览 评分:0.0
python--study||O.o 摘要: 就是求内部矩形的大小,主要问题是根据题意判断起点和终点参考代码:#肿瘤与边缘之间必须被0分隔开(未完全分隔就不算答案) n = int(input()) arr = [list(m…… 题解列表 2024年04月17日 0 点赞 0 评论 222 浏览 评分:0.0
python--study||O.o 摘要:参考代码:#每个草丛只能是1个'#'或2个'#' dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def f(x, y): …… 题解列表 2024年04月17日 0 点赞 0 评论 207 浏览 评分:0.0
python--study||O.o 摘要:参考代码:from copy import deepcopy dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def judge(x, y): fo…… 题解列表 2024年04月16日 0 点赞 0 评论 251 浏览 评分:0.0
python--study||O.o 摘要:参考代码:arr = [[0] * 9 for _ in range(9)] temp = [[0] * 9 for _ in range(9)]#辅助列表,接收变化后的数据 dx = (-1,0…… 题解列表 2024年04月16日 0 点赞 0 评论 256 浏览 评分:0.0
python--study||O.o 摘要:参考代码:dx = (-1,0,1,0,-1,-1,1,1) dy = (0,-1,0,1,-1,1,-1,1) n, m = map(int, input().split()) map = […… 题解列表 2024年04月16日 0 点赞 0 评论 290 浏览 评分:0.0
python--study||O.o 摘要:参考代码:n, m = map(int, input().split()) arr = [[int(num) for num in input().split()] for _ in range(n…… 题解列表 2024年04月16日 0 点赞 0 评论 205 浏览 评分:0.0
编写题解 1062: 二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:o = input().split() if len(o) >= 2: m, n = int(o[0]), int(o[1]) min = min(…… 题解列表 2024年04月16日 0 点赞 0 评论 222 浏览 评分:0.0
编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:for i in range(1, 10): for j in range(1, i + 1): print("%.d*%.d=%.d" %(…… 题解列表 2024年04月16日 0 点赞 0 评论 693 浏览 评分:0.0