牛客284596396号
牛客284596396号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客284596396号的博客
全部文章
(共7篇)
题解 | 公司发工资问题
s = [100, 50, 20, 10, 5, 1] money = [0] * 6 while True: a = int(input()) if a == 0: break for i in range(6): money[i] += a...
2026-01-29
0
31
题解 | 公司发工资问题
money1=[0 for i in range(6)] s=[100,50,20,10,5,1] text=[] while True: a=int(input()) if a==0: break for i in range(6): mon...
2026-01-29
0
26
题解 | 大整数排序
s=int(input()) list1=[[] for i in range(1000)] for i in range(s): t=input() list1[len(t)].append(t) #print(list1) for i in range(1000): if...
2026-01-25
0
31
题解 | N阶楼梯上楼问题
s=int(input()) dp=[1,1]+100*[0] for i in range(2,s+1): dp[i]=dp[i-1]+dp[i-2] print(dp[s]) 线性dp秒了
2026-01-23
0
38
题解 | 农夫、羊、菜和狼的故事
https://blog.csdn.net/qq_62264236/article/details/135734028?spm=1001.2014.3001.5502
2026-01-16
0
34
题解 | IP地址
print('Yes!' if all(0 <= int(i) <= 255 for i in input().split('.')) else 'No!') 秒了
2026-01-16
0
34
题解 | A+B
s=input().replace(',','').split(' ')//替换',',分割成列表 print(int(s[0])+int(s[1]))//强转int
2026-01-15
0
53