![第二部分feudaliaswar解題報(bào)告_第1頁(yè)](http://file4.renrendoc.com/view/41ba007a7cbedd4dba4e1583b988477d/41ba007a7cbedd4dba4e1583b988477d1.gif)
![第二部分feudaliaswar解題報(bào)告_第2頁(yè)](http://file4.renrendoc.com/view/41ba007a7cbedd4dba4e1583b988477d/41ba007a7cbedd4dba4e1583b988477d2.gif)
下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、TopcoderSRM438I【時(shí)空限制2【問題描述N M T1 TopcoderSRM438I【時(shí)空限制2【問題描述N M T1 【數(shù)據(jù)規(guī)模和約定N,【試】 【算法描述二【算法描述二【其他算法【實(shí)現(xià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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 下設(shè)子公司合同范本
- 2025-2030年中國(guó)無(wú)功功率表項(xiàng)目投資可行性研究分析報(bào)告
- 出售大型廢船合同范例
- 2025年度建筑工地鋼筋智能化倉(cāng)儲(chǔ)與物流配送合同
- 伴聚合作合同范本
- 公交輪胎采購(gòu)合同范例
- 停產(chǎn)勞動(dòng)合同范本
- 人工草坪合同范本
- 2025年印刷裝飾紙項(xiàng)目可行性研究報(bào)告
- 供應(yīng)商技術(shù)合同范本
- 2024新滬教版英語(yǔ)(五四學(xué)制)七年級(jí)上單詞默寫單
- 電力兩票培訓(xùn)
- TCCEAS001-2022建設(shè)項(xiàng)目工程總承包計(jì)價(jià)規(guī)范
- 2024.8.1十七個(gè)崗位安全操作規(guī)程手冊(cè)(值得借鑒)
- 小王子-英文原版
- 二次供水衛(wèi)生管理制度及辦法(4篇)
- 電影《白日夢(mèng)想家》課件
- 婦產(chǎn)科產(chǎn)后虛脫患者的應(yīng)急預(yù)案及程序
- DB11∕T 446-2015 建筑施工測(cè)量技術(shù)規(guī)程
- 運(yùn)輸車輛掛靠協(xié)議書(15篇)
- 完整版:美制螺紋尺寸對(duì)照表(牙數(shù)、牙高、螺距、小徑、中徑外徑、鉆孔)
評(píng)論
0/150
提交評(píng)論