下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、TopcoderSRM438I【時空限制2【問題描述N M T1 TopcoderSRM438I【時空限制2【問題描述N M T1 【數據規(guī)模和約定N,【試】 【算法描述二【算法描述二【其他算法【實現情況【感謝【附錄ProblemFeudalias military is preparinga preemptive strike against Bananias military installations. Feudalia has number of missile silos. Each silo has an unlimited number of missiles at its al
2、, an only fire singlemissileime.Whenamissileisfired,itrequires takeOffTimesecondsbeforeitcantakeo its silo. Once itnumber of missile silos. Each silo has an unlimited number of missiles at its al, an only fire singlemissileime.Whenamissileisfired,itrequires takeOffTimesecondsbeforeitcantakeo its sil
3、o. Once it takes off, it requires distance/missileSpeed minutes to reach , where distance the Euclidean distance n the silo and . When the missile reaches , instantlydestroyed.Afteramissiletakesoff,itssilorequiresrechargeTimeminutesofpreparationbeforecanlaunchanotherTeralhas ordered you todestroyall
4、 of Bananias militarybases in as little time sible.Yous siloX, siloY, baseX and baseY which determine the locations of the missile silos and Feudalias i-th missile silo is located at (siloXi, siloYi) and Bananias j-th base is located at baseYj).Returntheminimuminutesrequiredtodestroyallenemydoublege
5、tMinimumTime( (besureyourmethodis- Thereturnedvaluemustbeaccuratetowithinarelativeorabsolutevalueof1E-s-takeOffTimewillberechargeTimewillben1and60,n5and1000,-missileSpeedwillbebaseXwillcontainbaseYwillhen1and2000,n 1 and 50 elements, inclusive. mberofelementsasbaseX.siloXwillcontainn1and50elements,-
6、siloYwillhemberofelementsas EachelementofbaseX,baseY,siloXandsiloYwill-siloYwillhemberofelementsas EachelementofbaseX,baseY,siloXandsiloYwillbeThelocationsforeachbaseandsilowillben0and1000000,1Returns:Anoptimalstrategywould00:00:Thesiloat(50,50)launchesanattackagainstthebaseat00:30:missilefinishesta
7、king20:30:Thesiloat(50,50)launchesitssecondmissile,thistimeagainstthebaseat21:00:Thesecondmissilefinishestaking41:30:Thesiloat(50,50)launchesitsthirdmissile,thistimeagainstthebaseat71:00:Thesecondmissilehitsthebaseat(0,50)(Thedistancewas71:12.6(Approx.):missilehitsthebaseat(0,0)(Thedistancewas91:30:
8、Thethirdmissilehitstheremaining1Returns:Since itnowtakes15hoursto prepareanew missile,usingthesame siloagainstthethreeenemy1Returns:Since itnowtakes15hoursto prepareanew missile,usingthesame siloagainstthethreeenemyis no longer the optimal strategy. Instead, each of the silos at (0,1000) and (1000,0) closestbasewhilethesiloatsthebaseatReturns:Returns:ThisproblemementistheexclusiveandproprietarypropertyofTopCoder,
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 邊城書籍介紹課件
- 辯論賽培訓課件
- 車隊職工安全培訓課件
- 內科主治醫(yī)師考試強化沖刺試題及答案
- 車隊冬季四防安全培訓課件
- 2026年四川低壓電工理論考試題庫及答案
- 酒店員工行為規(guī)范及獎懲制度
- 車間級安全培訓教學課件
- (2026)院感科年度培訓計劃(2篇)
- 車間電氣設備培訓課件
- 委內瑞拉變局的背后
- 政府補償協(xié)議書模板
- 語文-吉林省2026屆高三九校11月聯合模擬考
- 2025年四川省高職單招模擬試題語數外全科及答案
- 2025年江蘇事業(yè)單位教師招聘體育學科專業(yè)知識考試試卷含答案
- 模擬智能交通信號燈課件
- 合肥市軌道交通集團有限公司招聘筆試題庫及答案2025
- 2.3《河流與湖泊》學案(第2課時)
- 工地臨建合同(標準版)
- GB/T 46275-2025中餐評價規(guī)范
- 2025至2030供水產業(yè)行業(yè)項目調研及市場前景預測評估報告
評論
0/150
提交評論