题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。
上传时间: 2015-01-08
上传用户:lifangyuan12
源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a,b,c依次序排列时,有13种不同的序列关系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要将n个数依序列,设计一个动态规划算法,计算出有多少种不同的序列关系, 要求算法只占用O(n),只耗时O(n*n).
上传时间: 2013-12-26
上传用户:siguazgb
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
STC-Download/STC-ISP下载工具(STC89C51单片机在线下载器) 必须组件: SPComm(必须), VCLSkin(可以去掉) ------------------------------------------ 23:13 2005年7月4日 ------------------- 1.增加了重复下载功能,便于多个芯片下载 2.改进连机搜索算法 13:23 2005年7月4日 ------------------- 1.增加了Hex文件功能,可以直接载入Hex文件 2.修改了Bin文件载入功能,实现Bin文件直接载入,Hex解码到内存再载入 1:12 2005年7月4日 ------------------- 1.优化下载速度,将波特率由原来的1200提高到57600 2.增强芯片识别率,只要以16H结尾,都是芯片合法回应值 3.增加芯片版本识别,可以烧写固件版本2.9和3.0和芯片 4.关闭调试串输出,状态栏只显示操作信息和时间 -------------------------------- 作者: 吴江涛 Http://www.ktao.net E-Mail: ik3000cn@126.com
标签: STC-Download STC-ISP VCLSkin SPComm
上传时间: 2015-06-14
上传用户:thuyenvinh
DNA限制性图谱的绘制方案程序 %采用改进的穷举法搜索DNA片段排序,data1,data2是传进来的两组数据,由SPDP法中测得 %例如data1=[1 14 12 3 7 8 9 6 11 4 12 3 13 2 5 10] data2=[1 1 2 1 2 2 1 2 3]
上传时间: 2014-01-19
上传用户:wxhwjf
汇编程序,完成如下功能: 每名学生需要如下描述:班级、学号、姓名、期末成绩、期中成绩、实验成绩、平时成绩。成绩可以有小数,如果有小数只能是点5,班级、学号、姓名格式自定。试编制一程序完成学生的录入和输出,输出的格式为:“班级、学号、姓名、总评成绩”,按照班级、学号进行排序,每人一行;最后再输出60以下、60-70、70-80、80-90、90-100分段内的人数。总评成绩的计算方法是:期末成绩×0.6+期中成绩×0.2+实验成绩*0.1+平时成绩*0.1。
上传时间: 2015-08-23
上传用户:zhangzhenyu
硕士学位论文捷联惯性系统初始对准研究 惯导系统的初始对准是影响系统使用性能的关键技术之一,对准的精度与速度直接关系到惯性统的精度与启动特性。对卡尔曼滤波及其在初始对准中的应用进行了研究。首先介绍了卡尔曼滤波理论的应用背景,然后推导了离散卡尔曼滤波方程,并对连续系统的状态方程进行离散化提出了适用于舰载捷联惯性系统的动基座对准的2通道10个状态变量和2通道12个状态变量的系统动态模型,并建了相应的速度匹配和位置匹配量测模型。
上传时间: 2013-12-26
上传用户:1159797854
用VHDL编写的一个出租车计费器,起步6元计2公里,此后每半公里计0.8元,停车等待每2.5分计0.8元。通过仿真,但未下载到CPLD测试
上传时间: 2013-12-24
上传用户:caixiaoxu26
游戏介绍: 操作:上下左右+空格 开窗游戏的3D 版,有2*2 到10 * 10的9个关卡,全部通过就算胜利。 作者介绍: Name: AnSIC QQ:125198630 Email: ansicii@qq.com 简介:目前高一,热爱游戏! 由于代码太乱,所以就不上传源码了。
标签: 操作
上传时间: 2015-11-13
上传用户:lx9076
To estimate the input-output mapping with inputs x % and outputs y generated by the following nonlinear, % nonstationary state space model: % x(t+1) = 0.5x(t) + [25x(t)]/[(1+x(t))^(2)] % + 8cos(1.2t) + process noise % y(t) = x(t)^(2) / 20 + 6 squareWave(0.05(t-1)) + 3 % + time varying measurement noise % using a multi-layer perceptron (MLP) and both the EKF and % the hybrid importance-samping resampling (SIR) algorithm.
标签: input-output the generated following
上传时间: 2014-01-05
上传用户:royzhangsz