导弹拦截
来源:互联网 发布:嘉实优化红利股票基金 编辑:程序博客网 时间:2024/05/17 23:40
代码如下:
#include<stdio.h>#include<stdlib.h>int main(){ int n,i; int a[100]; int max,count; scanf("%d",&n); while(n--) { count=0; for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++) if(a[i]<a[i+1]) count++; printf("%d\n",count); } system("pause"); return 0; }
0 0
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 导弹拦截
- 导弹拦截
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- 拦截导弹
- phpexcel 修改excel文件
- 同或门(XNOR)电路的网络学习
- Eclipse常用快捷键
- HDU4508 DP + 裸 + 完全背包
- charts练习总结
- 导弹拦截
- 2.C++基础知识
- iOS常用设备信息获取
- android之Uri
- 安装及使用cocoapods
- 初级程序代码解答,请前辈受教
- 2013年IT TOP100
- 构建之法2,3,4,11章
- Unable to get the focused window from device - android