传送门
发现一个结论。
只要存在长度>=3的非严格下降子序列就是NO,反之就是YES
#include <cstdio> #include <iostream> #define N 2001 #define max(x, y) ((x) > (y) ? (x) : (y)) int n, tmp; int a[N], f[N]; inline int read() int main() } if(i > n) puts("Yes!"); } return 0; }
结论错了。。。。。。。。
但是数据水。。。。。。。。
上一篇:[luoguP1868] 饥饿的奶牛(DP)
下一篇:2017_7台风套题
DP









