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
QUGR57KZZQXL530VXN2DANZQBJZGCGO6TW9JSWGUBUPN04SCX7UWNV34SCKPZNMBZOJWG1QRBA4X 42GWSVWJX8HWU6ZB6276OAM1VRKL5XR3TKID0A0ZEHGX5KRH4VE2KODDFIPCEA4X2VRQ0MLX55I5 1H3A40QYJBUT2QYEPP1M0YYDCKZLFBW5W5XAEXCP1WNMFOSKVDT5TSIB1E0U# Feature: EWAVR-CPP Version: 2.25_WIN standalone license (dongled) (no:1000-124-127-2755)
标签: SCKPZNMBZOJWG DANZQBJZGCGO JSWGUBUPN GWSVWJX8
上传时间: 2016-04-13
上传用户:kiklkook
伪随机数生成器,Implementation of the Quasi-Random Number generator currently hardwired to no more than 52 dimensions
上传时间: 2013-12-20
上传用户:teddysha
A new PLL topology and a new simplified linear model are presented. The new fractional-N synthesizer presents no reference spurs and lowers the overall phase noise, thanks to the presence of a SampleJHold block. With a new simulation methodology it is possible to perform very accurate simulations, whose results match closely those obtained with the linear PLL model developed.
标签: new fractional-N synthesizer simplified
上传时间: 2016-04-14
上传用户:hjshhyy
These listed libraries are written in WTL. But it s really hard to mix both MFC & WTL together. Obviously, it s not reasonable to ask a developer or a team to giving up MFC and move to the WTL world just because there were some great controls or visual Frameworks written in WTL (there are many things that should be considered especially in a company with hundreds of developers like the company I work for). Unfortunately, there was no such good and free visual Framework in MFC until now. Whatever difficulties there are, I still desire to be able to use them and now my effort is here to be shared with you. Under the Hood
标签: libraries WTL together written
上传时间: 2013-12-18
上传用户:wcl168881111111
--- --- ----- 1、界面更友善 2、优化主代码 3、更新热门词 4、增加搜索排行榜 5、修正切换搜索引擎时左栏不会随所选引擎自动变换问题 例:原http://so.ok881.com/go.asp?Key=唱得响亮&NO=9(这时左栏处于“网页”分类目录) 当将NO=9换成NO=101 时,左栏能自动切换到“影视”分类目录 6、增加相关搜索关键词 (经测试此功能所得关键词会大量被搜索引擎收录) ^_^ 惊喜中... 7、增加知识搜索、行情搜索; 8、更新免费搜索代码,提供多种尺寸及颜色选择。
上传时间: 2016-04-20
上传用户:onewq
北京大学ACM比赛题目 Write a program to read four lines of upper case (i.e., all CAPITAL LETTERS) text input (no more than 72 characters per line) from the input file and print a vertical histogram that shows how many times each letter (but not blanks, digits, or punctuation) appears in the all-upper-case input. Format your output exactly as shown.
标签: CAPITAL LETTERS program Write
上传时间: 2014-01-17
上传用户:410805624
Microsoft .net IL 汇编语言程序设计指南. 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?
标签: Microsoft choice matter truth
上传时间: 2014-11-06
上传用户:二驱蚊器
This will sample all 8 A/D-channels. The result will be send out via UART1 and can be seen within any terminal-program (9600 Baud). With each pressed key the next channel will be converted. No interrupts are used.
标签: will D-channels sample result
上传时间: 2016-04-23
上传用户:wxhwjf