23 lines
464 B
C++
23 lines
464 B
C++
//#include <iostream>
|
|
//#include <vector>
|
|
//
|
|
//using namespace std;
|
|
//
|
|
//int dfs(int x, vector<int>& 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<int> memo(n + 1, -1);
|
|
// cout << dfs(n, memo) << endl;
|
|
// return 0;
|
|
//}
|