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

2<b>09</b>9.1

  • 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男一枚

  • * 高斯列主元素消去法求解矩阵方程AX=B,其中A是N*N的矩阵,B是N*M矩阵 * 输入: n----方阵A的行数 * a----矩阵A * m----矩阵B的列数 * b----矩

    * 高斯列主元素消去法求解矩阵方程AX=B,其中A是N*N的矩阵,B是N*M矩阵 * 输入: n----方阵A的行数 * a----矩阵A * m----矩阵B的列数 * b----矩阵B * 输出: det----矩阵A的行列式值 * a----A消元后的上三角矩阵 * b----矩阵方程的解X

    标签: 矩阵 AX 高斯 元素

    上传时间: 2015-07-26

    上传用户:xauthu

  • 1. 在IBConsole中添加两个用户LOGIN和MATER

    1. 在IBConsole中添加两个用户LOGIN和MATER,密码均为PASSWORD。 2. 用MISDBA用户登录MISDB数据库。 3. 在ISQL中,输入第9章提供的SQL语句;或者根据表9-1至表9-8在SQL Explorer中自行创建数据表。数据库创建后需要分配LOGIN和MATER用户的访问权限。 4. 根据表9-9和表9-10设置初始数据,另外需要在PERSON数据表中设置一个用于登录系统的用户(ID=’MAT’,PASSWD=’PASSWORD’,AUTHORITY=’7’,STATE=’F’),同时在PART表中添加ID为’0000000000’的零件,名称为“。 5. 除了修改数据库连接的属性,还需要修改数据模块中LOGIN方法的相关用户密码。

    标签: IBConsole LOGIN MATER 用户

    上传时间: 2014-08-06

    上传用户:xiaohuanhuan

  • Struts新闻管理系统 1.本程序为学习struts的朋友提供一个例子。 2.本程序部分实现AJAX功能

    Struts新闻管理系统 1.本程序为学习struts的朋友提供一个例子。 2.本程序部分实现AJAX功能,采用DWR框架。 3.程序运行环境为MYECLIPSE 5.0 + TOMACT 5.5 + ORACLE 9i 4.配置说明:将lib目录下的commons-pool-1.2.jar,commons-dbcp-1.2.jar,ojdbc14.jar复制到TOMACT目录下的COMMON下的LIB目录中。 5.需要修改cn.lingqi.tool包下面的DBConnection.java中的配置部分。以及WebRoot\WEB-INF下的struts-config.xml的数据库配置部分。自己可以修改为MYSQL连接。

    标签: Struts struts AJAX 程序

    上传时间: 2013-11-30

    上传用户:330402686

  • 中国象棋的Java版本 448 Chess$1.class 4,613 Chess.class 5,009 Chess.java 8,727 ChessBoard.class 13

    中国象棋的Java版本 448 Chess$1.class 4,613 Chess.class 5,009 Chess.java 8,727 ChessBoard.class 13,867 ChessBoard.java 1,768 ChessPiece.class 1,301 ChessPiece.java 1,227 ChessPoint.class 989 ChessPoint.java 5,890 Demon.class 6,486 Demon.java 3,895 MakeChessManual.class 3,810 MakeChessManual.java 349 MoveStep.class 194 MoveStep.java 2,698 Rule.class 9,157 Rule.java

    标签: Chess class ChessBoard Java

    上传时间: 2015-10-08

    上传用户:CHENKAI

  • 高斯列主元消去法

    高斯列主元消去法,计算方法实现,已编译通过。使用例子 3x1+2x2+2x3+3x4=2.5 5x1+2x2+3x3+4x4=2.5 2x1+2x2+x3+2x4=2 3x1+x2+3x3+2x4=1.5 输入N=4,A={3 2 2 3 5 2 3 4 2 2 1 2 3 1 3 2},B={2.5 2.5 2 1.5}

    标签: 高斯

    上传时间: 2015-12-23

    上传用户:yan2267246

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.

    标签: represented integers group items

    上传时间: 2016-01-17

    上传用户:jeffery

  • File name: main.c ** Last modified Date: 2006-09-26 ** Last Version: 1.0 ** Descriptions: The

    File name: main.c ** Last modified Date: 2006-09-26 ** Last Version: 1.0 ** Descriptions: The main() function example template ** **------------------------------------------------------------------------------------------------------ ** Created by: ** Created date: 2006-09-16 ** Version: 1.0 ** Descriptions: The original version ** **------------------------------------------------------------------------------------------------------ ** Modified by: Driver IC:ili9320 18BIT ** Modified date: vcs320240-2006-0 ** Version: ** Descriptions:

    标签: Last Descriptions modified Version

    上传时间: 2016-04-01

    上传用户:R50974

  • S60-programming-a-tutorial-guide-symbian. 1 Introduction to Mobile-Phone Systems 1 1.1 Wireless

    S60-programming-a-tutorial-guide-symbian. 1 Introduction to Mobile-Phone Systems 1 1.1 Wireless Technologies 1 1.2 Cellular Systems 2 1.3 Elements of a Mobile-Phone System 4 1.4 Keeping Users’ Calls Separate 5 1.5 Multipath Propagation 7 1.6 2G Mobile-Phone Systems 9 1.7 GPRS Systems 10 1.8 3G Mobile-Phone Systems 13 1.9 IP Multimedia Subsystem 16 1.10 Mobile-Phone Hardware 17 2 Introduction to Symbian OS 19 Introduction 19 2.1 The Development of Symbian OS 20 2.2 Symbian OS User Interfaces 21 2.3 Coding Idioms 23 2.4 Tool Chains 28 3 The Console Application 33 Introduction 33 3.1 Creating a Console Application 33 3.2 CBase Classes 38 3.3 Protecting Memory 38 3.4 Putting It Into Practice: An Engine for a Simple Card Game 46 Summary 56

    标签: programming-a-tutorial-guide-symb Introduction Mobile-Phone Wireless

    上传时间: 2016-05-14

    上传用户:dianxin61