牛客284596396号
牛客284596396号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客284596396号的博客
全部文章
(共4篇)
题解 | 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
7
题解 | 农夫、羊、菜和狼的故事
https://blog.csdn.net/qq_62264236/article/details/135734028?spm=1001.2014.3001.5502
2026-01-16
0
11
题解 | IP地址
print('Yes!' if all(0 <= int(i) <= 255 for i in input().split('.')) else 'No!') 秒了
2026-01-16
0
10
题解 | A+B
s=input().replace(',','').split(' ')//替换',',分割成列表 print(int(s[0])+int(s[1]))//强转int
2026-01-15
0
15