标签:time jpg put recommend 思想 ali you otto alt
#include<stdio.h> int main() { long long dp[100]; int n=0; while(scanf("%d",&n)!=EOF) { dp[1]=1; dp[2]=2; for(int i=3;i<=n;i++) { dp[i]=dp[i-1]+dp[i-2]; } printf("%lld\n",dp[n]); } }
标签:time jpg put recommend 思想 ali you otto alt
原文地址:https://www.cnblogs.com/wzmm/p/12618431.html