著名的計(jì)算機(jī)(高級電腦制造商)公司租了一個樓層的建筑物,其形狀面積描述如下:
這個樓層在沿著走廊的北面和南面有200個房間.最近該公司提出了計(jì)劃改革系統(tǒng).改革包括搬動客房里的多很桌子.由于走廊狹窄,所有桌子都大,只有一張桌子可以通過走廊.就需要些讓搬動更加有效率的方法.經(jīng)理想出了以下計(jì)劃:搬動一張桌子從一個房間到另一個房間可以在10分鐘內(nèi).當(dāng)搬動一張桌子從房間i到房間J,房間i和房間j前面的部分走廊就被占用了.因此,在每個10分鐘內(nèi),兩個房間之間的搬動就不會同時(shí)用到走廊相同的部分.為了更明確,經(jīng)理舉例說明了可能的情況和不可能的情況.
每個房間,只有一張桌子可以搬進(jìn)或搬出.目前,經(jīng)理在尋找一種方法,以盡量減少時(shí)間,將所有桌子搬動.你的任務(wù)是擬定一個可以解決經(jīng)理人的問題方法.
英語翻譯
英語翻譯
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.
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.
英語人氣:566 ℃時(shí)間:2020-05-25 09:53:11
優(yōu)質(zhì)解答
我來回答
類似推薦
猜你喜歡
- 1汽車從甲地開往乙地,每小時(shí)行40千米,3小時(shí)后剩下的路程比全程的一半少8千米.如改用每小時(shí)52千米的速度行駛,再行幾小時(shí)到達(dá)乙地?
- 2印第安人喜愛雨后清風(fēng)的氣息,喜愛它拂過水面的聲音,喜愛風(fēng)中飄來的松脂的幽香.修辭手法?
- 3在平行四邊形ABCD中,向量AB+CA+BD等于
- 4高中勻變速直線運(yùn)動相關(guān)習(xí)題...
- 5y=x的平方+根號下【X-1/X+1】的導(dǎo)數(shù)怎么求啊
- 6用瓊脂平板劃線法分離細(xì)菌,培養(yǎng)后如何識別是你接種的,還是操作時(shí)雜菌污染?
- 7在1 2 3 4 5 6 7 8 中間填上加減乘除運(yùn)算符號等于2008
- 8拋物線的解析式為y=ax2+bx+c ,當(dāng)4a+2b+c=0時(shí),拋物線必過x軸上一點(diǎn),這一點(diǎn)是什么?/
- 9從百草園到三味書屋 第二段文字從哪些角度來描寫景物?表現(xiàn)了景物的什么特點(diǎn)?
- 10某大學(xué)宿舍里A、B、C、D、E、F、G七位同學(xué),其中兩位來自哈爾濱,兩位來自天津,了
- 11某實(shí)驗(yàn)小組用0.50mol/L NaOH溶液和0.50mol/L硫酸溶液進(jìn)行中和熱的測定.Ⅰ.本制0.50mol/L NaOH溶液 (1)若實(shí)驗(yàn)中大約要使用245mL NaOH溶液,至少需要稱量NaOH固體 g
- 12讀文言文有什么方法