文件名称:占座位
- 所属分类:
- 其他小程序
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2017-10-31
- 文件大小:
- 455kb
- 下载次数:
- 0次
- 提 供 者:
- red f******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
sun所在学校的教室座位每天都是可以预占的。
一个人可以去占多个座位,而且一定是要连续的座位,如果占不到他所要求的这么多座位,那么他就一个座位也不要了。为了降低难度,每次分配座位按座位号从小到大查找,采用最先适配法分配座位。(The classroom seats at sun are available every day. A person can go to more than one seat, and must be a continuous seat, if you can not account for so many seats he requested, then he would not have a seat. In order to reduce the difficulty, each seat is allocated according to seat number from small to large, and the seats are allocated by the first fit method.)
一个人可以去占多个座位,而且一定是要连续的座位,如果占不到他所要求的这么多座位,那么他就一个座位也不要了。为了降低难度,每次分配座位按座位号从小到大查找,采用最先适配法分配座位。(The classroom seats at sun are available every day. A person can go to more than one seat, and must be a continuous seat, if you can not account for so many seats he requested, then he would not have a seat. In order to reduce the difficulty, each seat is allocated according to seat number from small to large, and the seats are allocated by the first fit method.)
相关搜索: 占座位问题
(系统自动生成,下载前可以参看下载内容)
下载文件列表
占座位\占座位.cpp
占座位\占座位.exe
占座位\占座位.exe