摘要:
给一个数字n,然后n行,每行给出一个数字 (在1-n之间) 求最少的操作次数 n - 最长的连续上升子序列 这道题应该做出来,毕竟之前类似的做过,难过。。。。 #include <bits/stdc++.h> using namespace std; #define int long long co 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 5; int n; int a[maxn] = {0,1},s[maxn]; int num = 1,alen = 1,jin = 1,slen = 1; int 阅读全文
摘要:
https://www.luogu.com.cn/problem/P5675 #include <bits/stdc++.h> using namespace std; #define int long long const int mod = 1e9 + 7; int n, a[205], dp[ 阅读全文