标签:src alt 超级 amp printf print for 图片 while
#include <cstdio> int memo[45]; int f(int n) { memo[2] = 1; memo[3] = 2; for(int i = 4; i <= n; ++ i) { memo[i] = memo[i - 1] + memo[i - 2]; } return memo[n]; } int main() { int n, m; scanf("%d", &n); while(n --) { scanf("%d", &m); printf("%d\n", f(m)); } return 0; }
标签:src alt 超级 amp printf print for 图片 while
原文地址:https://www.cnblogs.com/mjn1/p/11283922.html