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

1<b>4</b>8

  • 题目: 已知全班有65人

    题目: 已知全班有65人,期末考共8门课,每门功课成绩均用百分制(整数)计分,请输入全班同学成绩,在A盘上生成全班成绩文件:A:\allscore.dat。输入形式为: 学号 成绩1 成绩2 ··· 成绩8 long int int int 从全班成绩文件中读出同学成绩资料,统计出至少有4门课成绩>=85分,其余>=70分的同学及其资料,在D盘上生成D:\score.dat文件;从全班成绩文件中找出需要参加补考(有一门或一门以上课程成绩<60分)的同学及其资料在C盘上生成补考文件C:\scoreb.dat。

    标签:

    上传时间: 2015-02-17

    上传用户:zhyiroy

  • Hamming(7/4

    Hamming(7/4,8/4)纠错码的编解码器

    标签: Hamming

    上传时间: 2013-12-21

    上传用户:tianjinfan

  • 餐饮管理系统数据库设计文档 表名:bzqbj(保质期报警表) 字段名 字段类型 字段长度 (0表示不允许NULL

    餐饮管理系统数据库设计文档 表名:bzqbj(保质期报警表) 字段名 字段类型 字段长度 (0表示不允许NULL,1为允许) id bigint 8 0 id ylid varchar 50 1 原料id ylmc varchar 50 1 原料名称 diffbzq bigint 8 1 距离保质期的时间 diffbzqyj bigint 8 1 距离保质预警期的时间 bzq bigint 8 1 保质期 表名:cdb(菜单表) id varchar 50 1 mc varchar 50 1 名称 price float 8 1 价格 lbbh bigint 8 1 类别编号(typelist) dlmc varchar 50 1 大类名称 tj float 8 1 特价 sftj int 4 1 是否特价 sfjl int 4 0 是否酒类

    标签: bzqbj NULL 字段 管理系统

    上传时间: 2015-04-01

    上传用户:royzhangsz

  • 盒维数MATLAB计算程序。%根据计盒维数原理编写了求一维曲线分形维数的matlab程序 function D=FractalDim(y,cellmax) %求输入一维信号的计盒分形维

    盒维数MATLAB计算程序。%根据计盒维数原理编写了求一维曲线分形维数的matlab程序 function D=FractalDim(y,cellmax) %求输入一维信号的计盒分形维数 %y是一维信号 %cellmax:方格子的最大边长,可以取2的偶数次幂次(1,2,4,8...),取大于数据长度的偶数 %D是y的计盒维数(一般情况下D>=1),D=lim(log(N(e))/log(k/e)),

    标签: FractalDim function cellmax MATLAB

    上传时间: 2015-04-23

    上传用户:liuchee

  • 经统计

    经统计,某机器14条指令的使用频度分别为:0.01,0.15,0.12,0.03,0.02,0.04,0.02,0.04,0.01,0.13,0.15,0.14,0.11,0.03。分别求出用等长码、Huffman码、只有两种码长的扩展操作码3种编码方式的操作码平均码长。 解: 等长操作码的平均码长=4位 Huffman编码的平均码长=3.38位 只有两种码长的扩展操作码的平均码长=3.4位。 9.若某机要求:三地址指令4条,单地址指令255条,零地址指令16条。设指令字长为12位.每个 地址码长为3位。问能否以扩展操作码为其编码?如果其中单地址指令为254条呢?说明其理由。 答:①不能用扩展码为其编码。 ∵指令字长12位,每个地址码占3位; ∴三地址指令最多是2^(12-3-3-3)=8条, 现三地址指令需4条, ∴可有4条编码作为扩展码, ∴单地址指令最多为4×2^3×2^3=2^8=256条, 现要求单地址指令255条,∴可有一条编码作扩展码 ∴零地址指令最多为1×2^3=8条 不满足题目要求 ∴不可能以扩展码为其编码。 ②若单地址指令254条,可以用扩展码为其编码。 ∵依据①中推导,单地址指令中可用2条编码作为扩展码 ∴零地址指令为2×2^3=16条,满足题目要求

    标签:

    上传时间: 2015-04-30

    上传用户:zhangyigenius

  • W78E51B 规格书 W78E51B 是宽频率范围、低功耗的8 位微控制器。它的指令集同标准8051 指令集完全兼容。W78E51B 包含4K 字节的Flash EPROM;128 字节的RAM

    W78E51B 规格书 W78E51B 是宽频率范围、低功耗的8 位微控制器。它的指令集同标准8051 指令集完全兼容。W78E51B 包含4K 字节的Flash EPROM;128 字节的RAM;4 个8 位双向、可位寻址的I/O 口;一个附加的4 位 I/O 口P4;2 个16 位定时/计数器;一个硬件Watchdog 定时器及一个串行口。这些外围设备都由有7 个中断源和2 级中断能力的中断系统支持。为了方便用户进行编程和验证,W78E51B 内含的Flash EPROM 允许电编程和电读写。一旦代码确定后,用户就可以对代码进行保护。 W78E51B 有2 种节电模式,空闲模式和掉电模式,2 种模式均可由软件来控制选择。空闲模式下,处理 器时钟被关闭,但外设仍继续工作。在掉电模式下晶体振荡器停止工作,以将功耗降至最低。外部时钟 可以在任何时间及状态下被关闭,而不影响处理器运行。

    标签: W78E51B Flash EPROM 8051

    上传时间: 2014-11-29

    上传用户:klin3139

  • 数字运算

    数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no

    标签: 数字 运算

    上传时间: 2015-05-21

    上传用户:daguda

  • 2^x mod n = 1 acm竞赛题 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input

    2^x mod n = 1 acm竞赛题 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^? mod n = 1 otherwise. You should replace x and n with specific numbers. Sample Input 2 5 Sample Output 2^? mod 2 = 1 2^4 mod 5 = 1

    标签: mod satisfies minimum number

    上传时间: 2015-06-02

    上传用户:qlpqlq

  • The government of a small but important country has decided that the alphabet needs to be streamline

    The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition

    标签: government streamline important alphabet

    上传时间: 2015-06-09

    上传用户:weixiao99

  • 电力系统在台稳定计算式电力系统不正常运行方式的一种计算。它的任务是已知电力系统某一正常运行状态和受到某种扰动

    电力系统在台稳定计算式电力系统不正常运行方式的一种计算。它的任务是已知电力系统某一正常运行状态和受到某种扰动,计算电力系统所有发电机能否同步运行 1运行说明: 请输入初始功率S0,形如a+bi 请输入无限大系统母线电压V0 请输入系统等值电抗矩阵B 矩阵B有以下元素组成的行矩阵 1正常运行时的系统直轴等值电抗Xd 2故障运行时的系统直轴等值电抗X d 3故障切除后的系统直轴等值电抗 请输入惯性时间常数Tj 请输入时段数N 请输入哪个时段发生故障Ni 请输入每时段间隔的时间dt

    标签: 电力系统 计算 运行

    上传时间: 2015-06-13

    上传用户:it男一枚