Problem F:汽車加油 Time Limit:1000MS Memory Limit:65536K Total Submit:1400 Accepted:404 Language: not limited Description 一輛汽車加滿油后可行駛n公里。旅途中有若干個(gè)加油站。設(shè)計(jì)一個(gè)有效算法,指出應(yīng)在哪些加油站停靠加油,使沿途加油次數(shù)最少。 編程任務(wù): 對(duì)于給定的n和k(k <= 10000)個(gè)加油站位置,編程計(jì)算最少加油次數(shù)。 Input 第一行有2 個(gè)正整數(shù)n和k,表示汽車加滿油后可行駛n公里,且旅途中有k個(gè)加油站。接下來(lái)的1 行中,有k+1 個(gè)整數(shù),表示第k個(gè)加油站與第 k-1 個(gè)加油站之間的距離。第0 個(gè)加油站表示出發(fā)地,汽車已加滿油。第k+1 個(gè)加油站表示目的地。 Output 輸出最少加油次數(shù)。如果無(wú)法到達(dá)目的地,則輸出”No Solution”。 Sample Input 7 7 1 2 3 4 5 1 6 6 Sample Output 4
標(biāo)簽: Limit Accepted Language Problem
上傳時(shí)間: 2016-04-12
上傳用戶:youth25
DVB-T射頻,波形及頻譜圖,M文件
上傳時(shí)間: 2014-01-24
上傳用戶:zhliu007
This demo nstrates how to use the sequential Monte Carlo algorithm with reversible jump MCMC steps to perform model selection in neural networks. We treat both the model dimension (number of neurons) and model parameters as unknowns. The derivation and details are presented in: Christophe Andrieu, Nando de Freitas and Arnaud Doucet. Sequential Bayesian Estimation and Model Selection Applied to Neural Networks . Technical report CUED/F-INFENG/TR 341, Cambridge University Department of Engineering, June 1999. After downloading the file, type "tar -xf version2.tar" to uncompress it. This creates the directory version2 containing the required m files. Go to this directory, load matlab5 and type "smcdemo1". In the header of the demo file, one can select to monitor the simulation progress (with par.doPlot=1) and modify the simulation parameters.
標(biāo)簽: sequential reversible algorithm nstrates
上傳時(shí)間: 2014-01-18
上傳用戶:康郎
ITU-T G.723.1 Speech Coder: Matlab implementation This package implements the speech coder and decoder. Full documentation is in the PDF file included with the package. The test folder has test programs for the coder and decoder (for Windows).
標(biāo)簽: implementation implements package Speech
上傳時(shí)間: 2013-12-05
上傳用戶:qq521
T-kernel 操作系統(tǒng)源代碼,應(yīng)用十分廣泛,性能優(yōu)于uCOSII,可供參考,學(xué)習(xí),使用!
標(biāo)簽: T-kernel 操作系統(tǒng) 源代碼
上傳時(shí)間: 2016-04-21
上傳用戶:ddddddos
T-monitor監(jiān)控程序,類是BIOS,BSP,uBoot等,主要應(yīng)用于SH系列處理器。
標(biāo)簽: T-monitor 監(jiān)控程序
上傳時(shí)間: 2013-12-22
上傳用戶:13188549192
新一代的多媒體移動(dòng)標(biāo)準(zhǔn)DVB—H是DVB—T在移動(dòng)接收方面的擴(kuò)展。針對(duì)移動(dòng)接收的特點(diǎn),DVB—H 提出 了幾項(xiàng)頗受矚目的新技術(shù),實(shí)現(xiàn)了對(duì)手機(jī)等手持式移動(dòng)終端接收地面數(shù)字廣播電視信號(hào)的良好支持。包括降低能耗、無(wú)縫切 換、提高移動(dòng)環(huán)境中的抗干擾能力以及靈活的組網(wǎng)方案等。介紹了DVB—H的系統(tǒng)結(jié)構(gòu),詳細(xì)討論了DVB—H標(biāo)準(zhǔn)中數(shù)據(jù) 鏈路層的時(shí)間分片(time slicing)和多協(xié)議封裝一前向糾錯(cuò)(MPE—FEC)技術(shù),并給出一些實(shí)驗(yàn)環(huán)境下的定量分析。
標(biāo)簽: DVB 移動(dòng)接收 多媒體 移動(dòng)標(biāo)準(zhǔn)
上傳時(shí)間: 2016-04-22
上傳用戶:hphh
Microsoft .net IL 匯編語(yǔ)言程序設(shè)計(jì)指南. To tell the truth, I don t think I had much choice in this matter. Let me explain. With Microsoft .NET technology taking the world by storm, with more and more information professionals getting involved, large numbers of books covering various aspects of this technology have started to arrive—and none too soon. Alas, virtually all of these books are dedicated to .NET-based programming in high-level languages and rapid application development (RAD) environments. No doubt this is extremely important, and I am sure all these books will have to be reprinted to satisfy the demand. But what about the plumbing?
標(biāo)簽: Microsoft choice matter truth
上傳時(shí)間: 2014-11-06
上傳用戶:二驅(qū)蚊器
C語(yǔ)言陷阱和缺陷 原著:Andrew Koenig - AT&T Bell Laboratories Murray Hill, New Jersey 07094 (翻譯:lover_P) 那些自認(rèn)為已經(jīng)“學(xué)完”C語(yǔ)言的人,請(qǐng)你們仔細(xì)讀閱讀這篇文章吧。路還長(zhǎng),很多東西要學(xué)。我也是
標(biāo)簽: Laboratories lover_P Andrew Koenig
上傳時(shí)間: 2013-12-26
上傳用戶:奇奇奔奔
Visual Studio .NET 使用技巧手冊(cè) 作者:Minh T. Nguyen
標(biāo)簽: T. Visual Studio Nguyen
上傳時(shí)間: 2014-01-02
上傳用戶:gundamwzc
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1