P1028 [NOIP2001 普及组] 数的计算 python
生活随笔
收集整理的這篇文章主要介紹了
P1028 [NOIP2001 普及组] 数的计算 python
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
https://www.luogu.com.cn/problem/P1028
""" P1028 [NOIP2001 普及組] 數(shù)的計算 https://www.luogu.com.cn/problem/P1028"""n=int(input())f=[]for i in range(1010):f.append(int(0))#print(f)for i in range(1,n+1):for j in range(1,i//2+1):f[i]+=f[j]f[i]+=1print(f[n])總結(jié)
以上是生活随笔為你收集整理的P1028 [NOIP2001 普及组] 数的计算 python的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PhpStorm failed to t
- 下一篇: websocket python爬虫_p