英語翻譯The famous ACM (Advanced Computer Maker) Company has ren
題目:
英語翻譯
The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.
The floor has 200 rooms each on the north side and south side along the corridor.Recently the Company made a plan to reform its system.The reform includes moving a lot of tables between rooms.Because the corridor is narrow and all the tables are big,only one table can pass through the corridor.Some plan is needed to make the moving efficient.The manager figured out the following plan:Moving a table from a room to another room can be done within 10 minutes.When moving a table from room i to room j,the part of the corridor between the front of room i and the front of room j is used.So,during each 10 minutes,several moving between two rooms not sharing the same part of the corridor will be done simultaneously.To make it clear the manager illustrated the possible cases and impossible cases of simultaneous moving.
For each room,at most one table will be either moved in or moved out.Now,the manager seeks out a method to minimize the time to move all the tables.Your job is to write a program to solve the manager’s problem.
解答:
著名的計算機(高級電腦製造商)公司租了一個樓層的建築物,其形狀面積描述如下:
這個樓層在沿著走廊的北面和南面有200個房間.最近該公司提出了計劃改革系統.改革包括搬動客房裡的多很桌子.由於走廊狹窄,所有桌子都大,只有一張桌子可以通過走廊.就需要些讓搬動更加有效率的方法.經理想出了以下計劃:搬動一張桌子從一個房間到另一個房間可以在10分鐘內.當搬動一張桌子從房間i到房間J,房間i和房間j前面的部分走廊就被占用了.因此,在每個10分鐘內,兩個房間之間的搬動就不會同時用到走廊相同的部分.爲了更明確,經理舉例說明了可能的情況和不可能的情況.
每個房間,只有一張桌子可以搬進或搬出.目前,經理在尋找一種方法,以儘量減少時間,將所有桌子搬動.你的任務是擬定一個可以解決經理人的問題方法.
添加新評論