记忆化要dfs了
二维数组的想到和应用
!!!long long 类型
include<bits/stdc++.h>
using namespace std;
long long dp[50][2];
long long f(int x)
{
dp[1][0]=1;dp[1][1]=2;
for(int i=2;i<=x;i++)
{
dp[…
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …