輸入的第一行是一個正整數N(1<=N<=40),表示TheBeet買了N個山東煎餅,已知每個山東煎餅價格為2.5元。 接下來有6個非負整數,范圍在[0, 1000]之內,分別表示攤主所擁有的50元、10元、5元、1元、5角、1角紙幣的數量。 Output 輸出一個整數,表示TheBeet最后收到的紙幣數。如果無法滿足要求,那就輸出-1。
上傳時間: 2016-06-26
上傳用戶:米卡
Description 為了宣傳本次“網宿科技杯”廈門大學第五屆程序設計競賽,系里面做了兩張精美的海報。經過了精確的計算,為了達到最佳美觀效果,每張海報都有自己最佳的粘貼位置。但是現在問題是,如果兩張海報都要求貼在最佳位置時,很有可能有部分地方會重疊在一起。現在您來判斷一下這兩張海報是否重疊。 Input 輸入包含兩行,每一行有四個整數來描述這個海報的最佳粘貼位置,X,Y,W,H(-10000<= X,Y <= 10000)(0 < W, H <= 10000),X,Y表示海報左下角的坐標,W,H分別表示寬度和高度。 Output 輸出"Yes"表示兩張海報互相重疊(表示存在一個面積大于0的公共區域),否則輸出"No"。(不包含引號,注意大小寫) Sample Input -10 -10 20 30 0 0 30 20 Sample Output Yes
標簽: Description 大學 程序設計 競賽
上傳時間: 2016-06-26
上傳用戶:gxf2016
Network Tools In this exercise, you will make use of common network tools. For each part below, capture the appropriate program output and include it with your answers to the questions.
標簽: exercise Network network common
上傳時間: 2013-12-11
上傳用戶:ywqaxiwang
Free 8051 asm compiler for win new host platforms: Win32 and Linux macro processing dramatically improved conditional assembly output in Intel-HEX or OMF-51 format 37 new MCU files documentation in both ASCII and HTML format numberless small extensions and improvements bug fixes For details see the ASEM-51 Release Notes.
標簽: dramaticall processing platforms compiler
上傳時間: 2013-12-20
上傳用戶:chongcongying
Free 8051 asm compiler for linux new host platforms: Win32 and Linux macro processing dramatically improved conditional assembly output in Intel-HEX or OMF-51 format 37 new MCU files documentation in both ASCII and HTML format numberless small extensions and improvements bug fixes For details see the ASEM-51 Release Notes.
標簽: processing dramatica platforms compiler
上傳時間: 2014-10-28
上傳用戶:wxhwjf
用Fourier變換求取信號的功率譜---周期圖法 用Fourier變換求取信號的功率譜---分段周期圖法 用Fourier變換求取信號的功率譜---welch方法 功率譜估計----多窗口法(multitaper method ,MTM法) 功率譜估計----最大熵法(maxmum entmpy method,MEM法) 功率譜估計----多信號分類法(multiple signal classification,music法)Fourier transform to strike a signal to the power spectrum - the cycle of plans Fourier transform to strike a signal to the power spectrum - Sub-cycle Method Fourier transform to strike a signal to the power spectrum --- welch method Power spectrum estimated more than window ---- Law (multitaper method, MTM) ---- Power spectrum estimate of maximum entropy (maxmum entmpy method, MEM) ---- More than the estimated power spectrum signal classification (multiple signal classification, music)
上傳時間: 2016-07-16
上傳用戶:wqxstar
這是個反向工程delphi的程序的全部源代碼.能分析幾乎所有的結構 Revendepro is a program to reverse engineer Delphi program. Revendepro finds almost all structures (classes, types, procedures, etc) in the program, and generates the pascal representation, procedures will be written in assembler. Due to some limitation in assembler the generated output can not be recompiled.
標簽: program Revendepro engineer reverse
上傳時間: 2016-07-21
上傳用戶:songrui
.ifnz I2C_SUPPORT ************************************************************** Function : fProcessI2cRead Description : process I2C write function Input : IOP_DATA1_H=rCtrlByte,IOP_DATA1_L=rAddr Output : NONE ************************************************************** fProcessI2cRead: fetch parameter lda IOP_DATA1_H sta rCtrlByte lda IOP_DATA1_L sta rAddr jsr fI2cSendCmdAddr bcs lReadI2CFail
標簽: C_SUPPORT Function ifnz fPro
上傳時間: 2016-07-21
上傳用戶:xaijhqx
* The functions debug_init() and debug() implement non-RTOS * serial port initialization and a blocked debug output. The * debug() function can be used in error message and die * situations.
標簽: initialization debug_init functions and
上傳時間: 2016-07-24
上傳用戶:caozhizhi
問題描述 設有n種不同面值的硬幣,各硬幣的面值存于數組T[1:n]中。現要用這些面值的硬幣來找錢,可以實用的各種面值的硬幣個數不限。當只用硬幣面值T[1],T[2],…,T[i]時,可找出錢數j的最少硬幣個數記為C(i,j)。若只用這些硬幣面值,找不出錢數j時,記C(i,j)=∞。 編程任務 設計一個動態規劃算法,對1≤j≤L,計算出所有的C( n,j )。算法中只允許實用一個長度為L的數組。用L和n作為變量來表示算法的計算時間復雜性 數據輸入 由文件input.txt提供輸入數據。文件的第1行中有1個正整數n(n<=13),表示有n種硬幣可選。接下來的一行是每種硬幣的面值。由用戶輸入待找錢數j。 結果輸出 程序運行結束時,將計算出的所需最少硬幣個數輸出到文件output.txt中。
標簽:
上傳時間: 2016-07-28
上傳用戶:yangbo69