很好的搜索: 给你很多长度不定的木棒,将他们分成几组,每组中的总长度作为这组的标示值,请给出一种分组方法,能使得所有标示值中的最小值最大。 Input 多组,每组两行,第一行是一个N和K,代表有N根木棒,分成K组,第二行是N个数字,代表木棒的长度。(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运用 第一行输入一个整数C。C是测试的情况(0< C <=30).第二行一个正整数N( 0< N <=100),表示道路的总数.紧接N行,每一行包含两个字符串, Si,,Ti,和一个整数Di,代表从Si到Ti的距离(0<= Di <=150)。最后一行有两个字符串,S 和 T,你得找出从S 到 T的最短的距离。地名是不超过120个小写字符的串(从‘a’到‘z’)。假设这里最多有100条直接连通两个地方的路。 Output 输出包含C行,每一行对一种测试情况。对每一种测试情况,输出包含一个整数,假如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 寄存器选择信号,命令数据方式选择 5.../WR..... WR 写有效 6.../RD..... RD 读有效 7...D0 ..... P0.0 数据总线 D0 8...D1 ..... P0.1 数据总线 D1 9...D2 ..... P0.2 数据总线 D2 10..D3 ..... P0.3 数据总线 D3 11..D4 ..... P0.4 数据总线 D4 12..D5 ..... P0.5 数据总线 D5 13..D6 ..... P0.6 数据总线 D6 14..D7 ..... P0.7 数据总线 D7 15../CS .... GND 片选通信号,低电平有效.实际使用应编入地址 16../RES.... /RESET 复位信号,低电平有效,阻容式复位电路 17..VEE..... -Vout 逆变-22.5V 负电压输出 18..VSS..... GND 地线 0V
上传时间: 2013-12-22
上传用户:redmoons
模拟实现spooling技术 一个用C做的假脱机SPOOLING输入程序,是操作系统实验来的,-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 插值程序,实现二维三维数据插值 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