题解列表

筛选

矩阵对角线求和

摘要:解题思路:注意事项:参考代码:ls = []for i in range(3):    a = list(map(int,input().split()))    ls.append(a)i = ls……

1014: [编程入门]阶乘求和

摘要:参考代码:n = int(input()) arr = [] for i in range(1, n + 1):     count = 1     for j in range(1, i):……

2814: 正常血压

摘要:参考代码:n = int(input()) count = [] h = 0 for i in range(n):     x, y = map(int, input().split()) ……

2813: 药房管理

摘要:参考代码:m = int(input()) n = int(input()) arr = list(map(int, input().split())) k = 0 for i in rang……

1332: 津津的储蓄计划

摘要:参考代码:estimate = [int(input()) for i in range(12)]    #预算 amount = 0   #零花钱 bank = [] flag = True……

数据结构-八进制数

摘要:解题思路:注意事项:参考代码:while True:    try:        n = int(input())        oct_num = oct(n)        print(oct_……

1147: C语言训练-角谷猜想

摘要:参考代码:n = int(input()) while n != 1:     n = int(n)     if n % 2 == 0:         print(f"{n}/2={int……

最优清零方案

摘要:解题思路:使用滑动窗口,找到区间内最小值,并从这个最小值开始继续滑动。注意事项:参考代码:n, k = map(int, input().split())nums = list(map(int, in……