信息學(xué)集訓(xùn)隊作業(yè)0082-pollute_第1頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Pollutant In a company,The delivery system is made up of a several warehouses, with trucks running from warehouse to warehouse moving milk. While the bad milk will be found quickly, it t it is t it does not make it to the grocer, Pollutant In a company,The delivery system is made up of a several war

2、ehouses, with trucks running from warehouse to warehouse moving milk. While the bad milk will be found quickly, it t it is t it does not make it to the grocer, so you must shut down enough trucks to sible for the milk to get to the grocer in question. Every route costs a amount to shut down. Find th

3、e minimum t must be spent to ensure the milk does reachitsdestination,alongsetoftruckstoshuttachievesthisgoaltLine 1: Two space egers, N and M. N (2 = N = 32) is the number warehouses,and M (0 = M= 1000) is thenumber of trucks routes run. Warehouse 1 the productional facility, while warehouse N is t

4、he grocer to which which the bad milk Line 2.M+1: Truck routes: three egers, Si, Ei, and Ci. Si and Ei (1 Si,Ei =N)correspond to ckup warehouse anddropoff warehouse for the truckroute. Ci =Ci=2,000,000)isthecostofshuttingdownthe truckS4 LE1 2 2 3 line of the outputshouldbe egers, C andT. C is the mi

5、nimum amount must be spent in order to ensure the our milk never reaches its destination. T is the number of truck t you plan to shut down in order to achive this goal. The next T sould he truck t you suggest shutting down. If there are multiple sets of tachieve the goalat minimumcost,choose tshutsdown the minimumnumberLE60 3污染控要N2N32) M0M1000) 13污染控要N2N32) M0M1000) 1即是生產(chǎn)牛奶的公司,倉庫N則是銷售點(僅有一個)以下 M 行,描寫線路,三個由空格分開的整數(shù)Si,Ei,Ci。Si,Ei(1 = Si,Ei = N) 分別對應(yīng)著一條線路的起點與終點(單向傳送Ci0Ci2,000,000) i。第一行輸出兩個整數(shù),C和T。C是最小用來關(guān)閉線路對公司產(chǎn)生的損失。T關(guān)閉得線路數(shù)。以下T 行則代表了要關(guān)閉的線路4 。1 2 2 3 60 3就是將費用*10000+1 Tot MinCost,又包含了

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論