文件名称:00
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.07kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
假设要在足够多的会场里安排一批活动,并希望使用尽可能少的会场。设计一个有效的贪心算法来进行安排。试编程实现对于给定的k个待安排活动,计算使用的最少会场。输入数据中,第一行是k的值,接下来的k行中,每行有2个正整数,分别表示k个待安排活动的开始时间和结束时间,时间以0点开始的分钟计。输出为最少的会场数。-Assume it to be enough room in the arrangements in a number of activities and want to use the venue as small as possible. Design an efficient greedy algorithm to carry out the arrangements. Test Programming k for a given month to be arranged activities, calculated using the minimum of the venue. Input data, the first line is the value of k, the next k lines, each line has two positive integers, respectively, k a question that the activities arranged by the start time and end time, time to the beginning of 0:00 minutes. Output for at least a few of the venue.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
00.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.