杨舜文
杨舜文
全部文章
分类
题解(113)
归档
标签
去牛客网
登录
/
注册
杨舜文的博客
全部文章
(共5篇)
题解 | #迷宫问题#
import sys arr = [] points = [] row, column = [int(x) for x in sys.stdin.readline() if x.strip()] def dfs(arr, x, y): if x == row - 1 and y == ...
Python3
2022-03-26
0
213
题解 | #火车进站#
import sys import copy num = int(sys.stdin.readline()) line = sys.stdin.readline() stack = line.split() input_li = [] output_li = [] ret_li = [] d...
Python3
2022-03-19
0
249
题解 | #放苹果#
def f(m, n): if m < 0 or n < 0: return 0 if m == 1 or n == 1: return 1 return f(m, n-1) + f(m-n, n) while True: ...
Python3
2021-11-27
0
266
题解 | #矩阵乘法#
import sys while True: try: x, y, z = int(input()), int(input()), int(input()) arr1 = [] arr2 = [] ret = [[0 for ...
Python3
2021-11-27
0
277
题解 | #完全数计算#
def is_perfect_number(n): li = [] for i in range(1, n//2 + 1): if n % i == 0: li.append(i) return sum(li) == n while ...
Python3
2021-11-14
0
232