Problem F:汽车加油 Time Limit:1000MS Memory Limit:65536K Total Submit:1400 Accepted:404 Language: not limited Description 一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。 编程任务: 对于给定的n和k(k <= 10000)个加油站位置,编程计算最少加油次数。 Input 第一行有2 个正整数n和k,表示汽车加满油后可行驶n公里,且旅途中有k个加油站。接下来的1 行中,有k+1 个整数,表示第k个加油站与第 k-1 个加油站之间的距离。第0 个加油站表示出发地,汽车已加满油。第k+1 个加油站表示目的地。 Output 输出最少加油次数。如果无法到达目的地,则输出”No Solution”。 Sample Input 7 7 1 2 3 4 5 1 6 6 Sample Output 4
标签: Limit Accepted Language Problem
上传时间: 2016-04-12
上传用户:youth25
This example demonstrates how the C8051F06x SMBus interface can communicate // with a 256 byte I2C Serial EEPROM (Microchip 24LC02B). // - Interrupt-driven SMBus implementation // - Only master states defined (no slave or arbitration) // - Timer4 used by SMBus for SCL low timeout detection // - SCL frequency defined by <SMB_FREQUENCY> constant
标签: demonstrates communicate C8051F06x interface
上传时间: 2016-04-12
上传用户:hanli8870
Without this, the debugger spontaneously fails! 1 - Install mdk315b 2 - Replace the files: \Keil\ARM\BIN\ARM.DLL with one from mdk305a\Keil\ARM\BIN\ARM.DLL \Keil\ARM\BIN31\ARM.DLL with one from mdk305a\Keil\ARM\BIN30\ARM.DLL \Keil\UV3\UV3.DLL with one from mdk305a\Keil\UV3\UV3.DLL (*) 3 - Use KeyGen (Ver3p4 works) Select ARM, With computer ID code , External CID code and RealView MDK (or RealView RL) Note: Must replace DLLs before entry of serial (*) - May not be necessary (???)
标签: spontaneously the debugger Without
上传时间: 2016-04-13
上传用户:小宝爱考拉
SMSTransceiver (short message service transmitter and receiver [transceiver]) is a tool for sending and receiving SMS via a serial or infrared connection between PC and a mobile phone.
标签: SMSTransceiver transmitter transceiver receiver
上传时间: 2014-01-04
上传用户:han_zh
In this letter, the error performance of an ultra-wideband (UWB) system with a hybrid pulse amplitude and position modulation (PAPM) scheme over indoor lognormal fading channels is analyzed. In the PAPM UWB system, input data is modulated onto both the pulse amplitudes and pulse positions.
标签: ultra-wideband performance amplitud letter
上传时间: 2014-01-08
上传用户:yulg
C8051程序, writes text to the serial port of the 8052,用keil编译
上传时间: 2016-04-15
上传用户:牛布牛
北京大学ACM题 Here is a geometric problem. You have an angle and some squares in the first quadrant of the plane rectangular coordinates. The vertex of the angle is fixed on the origin O of the coordinates, and both of its radial lines are specified by the input. The sizes of the squares are also specified by the input, and the squares can shift vertically and horizontally. Now your job is to use the squares and the radial lines of the angle to enclose the maximum area, which excludes the area of the squares (see Figure 1). You should note that the edges of the squares must be parallel to the axes.
标签: geometric quadrant problem squares
上传时间: 2013-12-25
上传用户:ynzfm
PlotSphereIntensity(azimuth, elevation) PlotSphereIntensity(azimuth, elevation, intensity) h = PlotSphereIntensity(...) Plots the intensity (as color) of a number of points on a unit sphere. Input: azimuth (phi), in degrees elevation (theta), in degrees intensity (optional, if not provided, a green sphere is produced) All inputs must be vectors or matrices of the same size. Data does not have to be evenly spaced. When there aren t enough points to draw a smooth sphere, additional points (with color) are interpolated. Output: h - a handle to the patch object The axes are also plotted: positive x axis is red positive y axis is green positive z axis is blue
标签: PlotSphereIntensity elevation azimuth intensity
上传时间: 2014-01-15
上传用户:ruan2570406
The neuro-fuzzy software for identification and data analysis has been implemented in the MATLAB language ver. 4.2. The software trains a fuzzy architecture, inspired to Takagi-Sugeno approach, on the basis of a training set of N (single) output-(multi) input samples. The returned model has the form 1) if input1 is A11 and input 2 is A12 then output =f1(input1,input2) 2) if input1 is A21 and input 2 is A22 then output =f2(input1,input2) 看不懂,据高手说,非常有用。
标签: identification neuro-fuzzy implemented analysis
上传时间: 2014-01-12
上传用户:zgu489
an application that finds the smallest of several integers. Assume that the first value read specifies the number of values to input from the user
标签: that application the smallest
上传时间: 2016-05-05
上传用户:yiwen213