很好的搜索: 給你很多長度不定的木棒,將他們分成幾組,每組中的總長度作為這組的標示值,請給出一種分組方法,能使得所有標示值中的最小值最大。 Input 多組,每組兩行,第一行是一個N和K,代表有N根木棒,分成K組,第二行是N個數(shù)字,代表木棒的長度。(N不超過100,K不超過20,每根木棒長度不超過1000) Output 輸出所有標示值中的最小值的最大值。 Sample Input 5 3 1 3 5 7 9 5 3 89 59 68 35 29 Sample Output 8 89
上傳時間: 2013-12-23
上傳用戶:nairui21
簡單的floyd運用 第一行輸入一個整數(shù)C。C是測試的情況(0< C <=30).第二行一個正整數(shù)N( 0< N <=100),表示道路的總數(shù).緊接N行,每一行包含兩個字符串, Si,,Ti,和一個整數(shù)Di,代表從Si到Ti的距離(0<= Di <=150)。最后一行有兩個字符串,S 和 T,你得找出從S 到 T的最短的距離。地名是不超過120個小寫字符的串(從‘a’到‘z’)。假設這里最多有100條直接連通兩個地方的路。 Output 輸出包含C行,每一行對一種測試情況。對每一種測試情況,輸出包含一個整數(shù),假如S 到 T存在一條最短的路,輸出從S到T的最短距離,否則輸出“-1”. Sample Input 2 2 jiuzhouriver liuchi 89 liuchi liyuan 100 liuchi jiuzhouriver 3 youyongchi fengyuan 100 qinshi meiyuan 100 chaochang supermarkt 100 meiyuan youyongchi Sample Output 89 -1
上傳時間: 2016-03-10
上傳用戶:wyc199288
SED1335驅動320x240圖形液晶驅動演示程序 接口情況表述: No: LCM ----- 52 --------------------- 1...VSS..... GND 地線 2...VDD..... +5V(VCC) 電源 3...VO ..... -Vadj Input 對比度負壓調整輸入 4...A0 ..... P2.0 寄存器選擇信號,命令數(shù)據(jù)方式選擇 5.../WR..... WR 寫有效 6.../RD..... RD 讀有效 7...D0 ..... P0.0 數(shù)據(jù)總線 D0 8...D1 ..... P0.1 數(shù)據(jù)總線 D1 9...D2 ..... P0.2 數(shù)據(jù)總線 D2 10..D3 ..... P0.3 數(shù)據(jù)總線 D3 11..D4 ..... P0.4 數(shù)據(jù)總線 D4 12..D5 ..... P0.5 數(shù)據(jù)總線 D5 13..D6 ..... P0.6 數(shù)據(jù)總線 D6 14..D7 ..... P0.7 數(shù)據(jù)總線 D7 15../CS .... GND 片選通信號,低電平有效.實際使用應編入地址 16../RES.... /RESET 復位信號,低電平有效,阻容式復位電路 17..VEE..... -Vout 逆變-22.5V 負電壓輸出 18..VSS..... GND 地線 0V
上傳時間: 2013-12-22
上傳用戶:redmoons
模擬實現(xiàn)spooling技術 一個用C做的假脫機SPOOLING輸入程序,是操作系統(tǒng)實驗來的,-do spooling SPOOLING input program is the experimental operating system
上傳時間: 2013-12-15
上傳用戶:思琦琦
Scotia Airlines is a new budget airline operating between Glasgow Airport and the Western Isles. It operates two 24-seater light passenger aircraft and requires a flight booking system. Because Scotia offers low cost air travel, there is a need to treat each flight as single cost centre and to be able to ascertain, at any moment, the amount of the cash taken for that flight. Reservations and bookings cannot be made until the flight details have been finalised (flight number, departure and arrival airports). A seat on a flight is considered booked when payment as been received for it. When a reservation is confirmed (changed to booked), the passenger name is checked against the original reservation. A flight can be in any of the following states: Available for bookings Checking in Boarding Closed
標簽: operating Airlines Glasgow Airport
上傳時間: 2016-03-25
上傳用戶:hgy9473
Kriging 插值程序,實現(xiàn)二維三維數(shù)據(jù)插值 Makefile_hp700 Makefile_ibm6000 kriging.mdf kriging.c outboard.c inv_m.tar.gz The inverse matrix source codes which got from Netlib. f2c.tar.gz The head file and library which are used to inverse matrix source codes. krig.net The example dx file. data1.dx The input example.
上傳時間: 2016-03-27
上傳用戶:縹緲
All programs were tested using a breadboard containing a DS80C320, 32K Program memory, 32K Data memory, two 8-segment bar graph LEDs/drivers, and an 11.0592 MHz crystal. The four 8-segment bar graph LEDs/drivers were connected to ports 1, and 3 to display their pins states.
標簽: breadboard containing 32K programs
上傳時間: 2016-03-29
上傳用戶:qq1604324866
Just what is a regular expression, anyway? Take the tutorial to get the long answer. The short answer is that a regular expression is a compact way of describing complex patterns in texts. You can use them to search for patterns and, once found, to modify the patterns in complex ways. You can also use them to launch programmatic actions that depend on patterns. A tongue-in-cheek comment by programmers is worth thinking about: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions now you have two problems." Regular expressions are amazingly powerful and deeply expressive. That is the very reason writing them is just as error-prone as writing any other complex programming code. It is always better to solve a genuinely simple problem in a simple way when you go beyond simple, think about regular expressions. Tutorial: Using regular expressions
標簽: expression the tutorial regular
上傳時間: 2013-12-19
上傳用戶:sardinescn
A dissipative particle swarm optimization is developed according to the self-organization of dissipative structure. The negative entropy is introduced to construct an opening dissipative system that is far-from-equilibrium so as to driving the irreversible evolution process with better fitness. The testing of two multimodal functions indicates it improves the performance effectively. structure. The negative entropy is introduced to construct an opening dissipative system that is far-from-equilibrium so as to driving the irreversible evolution process with better fitness. The testing of two multimodal functions indicates it improves the performance effectively.
標簽: self-organization optimization dissipative developed
上傳時間: 2016-03-31
上傳用戶:zgu489
更新內容: 1 增加了搜索功能 2 提供了幫助頁面 修改若干小問題 管理名稱 admin 初始密碼:admin-update : added a search function to help provide two pages of small amendments to a number of issues management initial name admin Password : admin
標簽: admin-update function search admin
上傳時間: 2014-01-06
上傳用戶:cmc_68289287