//#include //#include // //using namespace std; // //int dfs(int x, vector& memo) { // if (memo[x] != -1) return memo[x]; // int total = 1; // 自己本身是一个合法序列 // for (int i = 1; i <= x / 2; ++i) { // total += dfs(i, memo); // } // memo[x] = total; // return total; //} // //int main() { // int n; // cin >> n; // vector memo(n + 1, -1); // cout << dfs(n, memo) << endl; // return 0; //}