For solving the following problem: "There is No Free Lunch" Time Limit: 1 Second Memory Limit: 32768 KB One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free. However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.
标签: Limit following solving problem
上传时间: 2014-01-12
上传用户:362279997
Effective C++ Second Edition(中文版)传说中很牛的,对提高从c++编程能力很有提高
上传时间: 2013-11-27
上传用户:xzt
Wiley - The Mobile Radio Propagation Channel - Second Edition
标签: Propagation Channel Edition Mobile
上传时间: 2014-01-17
上传用户:zwei41
The third-generation mobile communication system standards
标签: third-generation communication standards mobile
上传时间: 2016-11-25
上传用户:Amygdala
High Performance MySQL SECOND EDITION 一本英文原版的Mysql数据库优化性能的书籍,PDF第二版的,很清晰,非常不错!
标签: Performance EDITION SECOND MySQL
上传时间: 2016-12-07
上传用户:金宜
The TMS320LF240xA and TMS320LC240xA devices, new members of the TMS320C24x generation of digital signal processor (DSP) controllers, are part of the TMS320C2000 platform of fixed-point DSPs. The 240xA devices offer the enhanced TMS320 DSP architectural design of the C2xx core CPU for low-cost, low-power, and high-performance processing capabilities. Several advanced peripherals, optimized for digital motor and motion control applications, have been integrated to provide a true single-chip DSP controller. While code-compatible with the existing C24x DSP controller devices, the 240xA offers increased processing performance (40 MIPS) and a higher level of peripheral integration. See the TMS320x240xA Device Summary section for device-specific features.
标签: TMS 320 generation 240
上传时间: 2013-12-16
上传用户:GavinNeko
The XC226x derivatives are high-performance members of the Infineon XC2000 Family of full-feature single-chip CMOS microcontrollers. These devices extend the functionality and performance of the C166 Family in terms of instructions (MAC unit), peripherals, and speed. They combine high CPU performance (up to 80 million instructions per second) with extended peripheral functionality and enhanced IO capabilities. Optimized peripherals can be adapted flexibly to meet the application requirements. These derivatives utilize clock generation via PLL and internal or external clock sources. Onchip memory modules include program Flash, program RAM, and data RAM.
标签: high-performance full-feature derivatives Infineon
上传时间: 2016-12-12
上传用户:wab1981
英文书《Fast Fourier Transforms, Second Edition》附带的MATLAB实例
标签: Transforms Edition Fourier Second
上传时间: 2016-12-20
上传用户:iswlkje
英文书《The Finite Element Method Using MATLAB, Second Edition》附带实例
标签: Element Edition Finite Method
上传时间: 2016-12-20
上传用户:515414293
Software Architecture in Practice, Second Edition By Len Bass, Paul Clements, Rick Kazman Publisher : Addison Wesley Pub Date : April 11, 2003 ISBN : 0-321-15495-9 Pages : 560
标签: Architecture Software Practice Clements
上传时间: 2013-12-26
上传用户:eclipse