SDUT 2075 最少拦截系统
来源:互联网 发布:windows 守护进程 编辑:程序博客网 时间:2024/05/17 10:04
最少拦截系统
点击打开链接
#include <iostream>#include <cstdio>#include <cstring>using namespace std;int pp[310];int main(){ int n, num; while(cin >> n) { num = 0; for(int i = 0; i < n; i++) cin >> pp[i]; for(int i = 0; i < n; i++) { if(pp[i] != 0) { int h = pp[i]; for(int j = i+1; j < n; j++) { if(pp[j] <= h && pp[j] != 0) { h = pp[j]; pp[j] = 0; } } num++; } } cout << num << endl; } return 0;}
0 0
- SDUT 2075 最少拦截系统
- SDUT 最少拦截系统 2075
- sdut 最少拦截系统
- 最少拦截系统 (sdut oj)
- [2075]最少拦截系统
- 2075最少拦截系统
- 2075最少拦截系统
- 最少拦截系统 SDUToj 2075
- 山东理工OJ 2075 最少拦截系统
- 贪心算法例题:2075最少拦截系统
- HDU1257最少拦截系统
- HDOJ_1257_最少拦截系统
- ACM_ZJUT_1099_最少拦截系统
- ZJUT1099 最少拦截系统
- 最少拦截系统!!
- 最少拦截系统
- HDU_1257最少拦截系统
- 最少拦截系统
- linux进程间通信之无名管道通信学习笔记
- 半边数据结构(The_Half-Edge_Data_Structure)
- 【C#】.NET技术的发展及其跨语言和跨平台特性
- 阅读程序1
- 经典算法和数据结构(四) 平衡查找树之B树
- SDUT 2075 最少拦截系统
- 阅读程序2
- flask + MongoDB 学习笔记 (-1): 个人用记录
- 阅读程序3
- JSONObject
- PHP审计-RIPS
- 阅读程序4
- android toolbar overflow icon color
- Javaweb乱码解决