#include<iostream> using namespace std; int a[32]={0}; int main() { int n,i; a[0]=1; a[2]=3; for(i=4;i<32;i++) a[i]=4*a[i-2]-a[i-4]; while(cin>>n&&n!=-1
1143.最长公共子序列 class Solution {public:int longestCommonSubsequence(string text1, string text2) {vector<vector<int>> dp(text1.size()+1,vector<int>(text2.size()+1,0));int res = 0;for(int i = 1; i <=