北大拦截导弹
来源:互联网 发布:linux ed2k 下载工具 编辑:程序博客网 时间:2024/06/01 10:06
求最长不升子序列
#include<stdio.h>int main(){ int a[30],d[30],i,j,max,n; while(scanf("%d",&n)!=EOF) { for(i=0;i<n;i++) scanf("%d",&a[i]); d[0]=1; for(i=1;i<n;i++) { d[i]=1; for(j=0;j<i;j++) if(a[j]>=a[i]&&d[j]+1>d[i]) d[i]=d[j]+1; } max=d[0]; for(i=1;i<n;i++) if(max<d[i]) max=d[i]; printf("%d\n",max); } return 0;}
- 北大拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 导弹拦截
- 导弹拦截
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- win7 64位下vmware8.0安装Mac 10.7--------cpu支持虚拟化
- hdu 1254 推箱子 双层bfs
- HDOJ1421搬寝室(动态规划)
- POJ 2528 Mayor's posters (线段树成段更新+离散化)
- ListView Control in C#.Net
- 北大拦截导弹
- 操作系统 信号量 vs 互斥锁
- POJ 3393 Lucky and Good Months by Gregorian Calendar
- 直接拖拽ipa包就能解压出图片资源
- 如何优化Cocos2d-X游戏的内存
- for循环语句头的执行顺序
- 数据库语言(DML、DDL、DCL、DQL、TCL)
- tomcat配置
- 两个队列实现一个栈