虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

SErial-Input

  • 问题描述 设有n种不同面值的硬币

    问题描述 设有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

  • AES在AVR单片机上的实现 资源要求 Program: 4492 bytes (6.9% Full) (.text + .data + .bootloader) Data: 7

    AES在AVR单片机上的实现 资源要求 Program: 4492 bytes (6.9% Full) (.text + .data + .bootloader) Data: 745 bytes (9.1% Full) (.data + .bss + .noinit) 可以在AVR Studio中模拟运行 AES加密和解密 在AVR Studio 中模拟运行 Ctrl+F7 后,模拟执行到main入口处 按F5后, 知道到加密完成 可以看出加密的结果 再按F10,执行解密, 可以看出input数组恢复了 原来的结果

    标签: bootloader Program bytes 4492

    上传时间: 2016-07-30

    上传用户:363186

  • 对任意给定的文法G 构造LR(1) 项目集规范族

    对任意给定的文法G 构造LR(1) 项目集规范族,其中要实现CLOSURE(I)、GO(I,X)、FIRST 集合等。在此基础上, 构造了LR(1)分析表。然后对输入的句子进行语法分析,给出接受或出错报告。 程序采用文件输入输出方式。其中包括两个输入文件:文法grammar.txt,以及 输入串input.txt;两个输出文件:项目集items.txt 和文法的LR(1)分析表 action_table.txt。由于语法分析的结果只给出接受或错误报告,比较简

    标签: LR 项目

    上传时间: 2016-07-30

    上传用户:来茴

  • 基于S3C2440的四线电阻式触摸屏驱动程序

    基于S3C2440的四线电阻式触摸屏驱动程序,linux2.6.22内核。把touchscreen.c放在driver/input/touchscreen/下。修改arch/arm/mach-s3c2440/mach-smdk2440.c以及相应的Makefile加上驱动即可。

    标签: S3C2440 四线电阻式 触摸屏 驱动程序

    上传时间: 2014-01-14

    上传用户:zmy123

  • This article introduces how to construct a Hospital Ward Information System with three-tiered techno

    This article introduces how to construct a Hospital Ward Information System with three-tiered technology. The System applies to UML, BDE, MIDAS, distributed compute theory and a special architecture to make such functions: patients check in and check out, prescription input, drug-delivery at center pharmacy and information of patient manage with computer networking.

    标签: three-tiered Information introduces construct

    上传时间: 2016-08-16

    上传用户:hn891122

  • Data Acquisition Device 数据采集办法 * Module Description组件描述: * Analog Data Acquisition模拟数据采集器组件使

    Data Acquisition Device 数据采集办法 * Module Description组件描述: * Analog Data Acquisition模拟数据采集器组件使用 EE314 * 设备接口通过RS232串行口serial port到PC,同时提供协议protocol支持最多5个对 * 手方频道

    标签: Acquisition Data Description Analog

    上传时间: 2016-08-26

    上传用户:alan-ee

  • a sample WDM stream class video capture driver that supports two IEEE 1394 digital cameras. The sam

    a sample WDM stream class video capture driver that supports two IEEE 1394 digital cameras. The same driver may be able to support other digital cameras that conform to 1394-based Digital Camera Specification from 1394 Trade Association. Digital camera supported by dcam.sys is a data source that produces digital image data without any other input connection. It manifests itself in a DirectShow graph as a WDM Streaming Capture Device and as a capture filter that has output capture stream supporting image sizes of 320x240 with a UYVY color space. Its de-compressor, Msyuv.dll, is part of the OS delivery, and it can convert image data format from UYVY to RGB16, RGB8, or to a Direct Draw surface if the video card supports UYVY format.

    标签: supports capture cameras digital

    上传时间: 2014-01-13

    上传用户:yph853211

  • 本代码应用于串口通信的应用熟悉Tornado的集成开发环境

    本代码应用于串口通信的应用熟悉Tornado的集成开发环境,通过CS850(CPU是Motorola的Power PC 850)的SCC(Serial Communication Controller)端口在NMSI方式下实现HDLC(High Data Link Communication)协议的自环通信。

    标签: Tornado 代码 串口通信 应用于

    上传时间: 2014-01-19

    上传用户:hullow

  • MS-Clustering is designed to rapidly cluster large MS/MS datasets. The program merges similar spectr

    MS-Clustering is designed to rapidly cluster large MS/MS datasets. The program merges similar spectra (having similar m/z values ?within a given tolerance), and creates a single consensus spectrum as a representative. The input formats accepted are: dta, mgf, mzXML. The output format is mgf.

    标签: MS-Clustering designed datasets cluster

    上传时间: 2013-12-20

    上传用户:cursor

  • 最小权定点覆盖问题的C++代码

    最小权定点覆盖问题的C++代码,使用时注意需要定义input.txt文件。ACM适用

    标签: 定点 代码

    上传时间: 2016-09-02

    上传用户:Ants