题解列表

筛选

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……

编写题解 2773: 计算线段长度,python超简单

摘要:解题思路:详见下列代码注意事项:如果不考虑两种情况,那么会出现运行错误,感觉题目有歧义,没有明确指出。。参考代码:from math import sqrt# 读取输入并转换为浮点数列表number ……

python用for解决

摘要:解题思路:注意事项:参考代码:str=input()a,b,c,d=0,0,0,0for i in str:    if (i>=&#39;A&#39; and i<=&#39;Z&#39;) or ……