源码简介: |
某旅馆有n个等级的房间,第i等级有a个房间,每个等级有b个床位(1<=i<=n).模拟旅馆个管理系统中床位的分配和回收功能,设计能为单个旅客分配床位,在其离店便回收床位(供下次分配)的算法-A hotel has n levels of the room, the first i have a level of rooms, each grade there are b-bed (1 <= i <= n). Simulated hotel management systems bed allocation and recovery of function, design for distribution of a single passenger beds will be out in their recovery beds (for the next allocation) algorithm
|