poj 2253
来源:互联网 发布:手机怎么下架淘宝宝贝 编辑:程序博客网 时间:2024/06/07 03:46
代码如下
#include<cstdio>#include<iostream>#include<cstring>#include<algorithm>using namespace std;int a[1005];int dp[1005];int los(int n){for(int i=0;i<n;i++)dp[i]=10005;for(int i=0;i<n;i++)*lower_bound(dp,dp+n,a[i])=a[i];return lower_bound(dp,dp+n,10005)-dp;}int main(){int n;scanf("%d",&n);for(int i=0;i<n;i++)scanf("%d",&a[i]);printf("%d\n",los(n)); }
阅读全文
0 0
- poj-2253
- poj 2253
- poj 2253
- POJ 2253
- poj 2253
- poj 2253
- poj.2253
- poj 2253
- poj-2253
- poj 2253
- POJ 2253
- POJ 2253
- POJ 2253
- POJ 2253
- POJ 2253
- poj 2253
- poj----2253
- poj ---2253
- 使用异步请求网络数据
- javascript数组小知识
- Linus实验楼笔记——第10节:命令执行顺序控制与管道
- centos下安装Tomcat服务器的实践
- engauge digitizer
- poj 2253
- Qt学习之路(24): QPainter
- ssh+filter+cookie实现自动登陆
- [编程题] 回文序列
- 关于 git reset 命令几个常用参数的理解
- idea创建springcloud项目图文教程(创建消费者)(八)
- redis3.2.5启动时 提醒"libc.so.6: version `GLIBC_2.14' not found"系统的glibc版本太低
- 有return的情况下try catch finally的执行顺序
- python学习资料