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

程序<b>编写</b>

  • 数字运算

    数字运算,判断一个数是否接近素数 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

  • 源代码用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a

    源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将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).

    标签: lt 源代码 动态规划 序列

    上传时间: 2013-12-26

    上传用户:siguazgb

  • 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

  • JBulider 开发人员指南(中文): JBuilder是Borland公司所推出的Java语言编程工具

    JBulider 开发人员指南(中文): JBuilder是Borland公司所推出的Java语言编程工具,它具有一个功能强大的集成开发环境,可以快速创建各种Java应 用程序。本书针对最新版本JBuilder 3提供了使用JBuilder开发数据库应用程序、创建分布式应用程序以及编写 JavaBean组件的高级材料,包括JBuilder的DataExpress数据库体系结构的信息,主数据组件和类之间的相互关系, 怎样使用DataModeler和Application Generator创建数据驱动的客户机/服务器应用程序等内容。通过阅读本书, 可以轻松地掌握Java语言,并能熟练地使用JBuilder 3来编写各种小应用程序和软件组件。

    标签: JBulider JBuilder Borland Java

    上传时间: 2015-06-09

    上传用户:miaochun888

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

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

    标签: 电力系统 计算 运行

    上传时间: 2015-06-13

    上传用户:it男一枚

  • 随着Internet的兴起和以网页为载体的网络信息的广泛传播

    随着Internet的兴起和以网页为载体的网络信息的广泛传播,网页制作中对于内容的动态显示与更新需求量越来越大。编写一个令人满意的动态网页已成为许多网页设计人员的目标。在众多的编写环境中,Microsoft Active Server Pages(ASP)以其强大的技术力量背景及容易掌握的语言环境迅速占领了大片市场、获得了众多网页设计人员的青睐。为了使更多的人掌握ASP应用程序的编写,本书以丰富的事例、简单的语言较全面的介绍了ASP应用程序的设计方法与技巧,并详细的介绍了Microsoft SQL Server在ASP应用程序中的应用。

    标签: Internet 网络信息

    上传时间: 2013-12-30

    上传用户:

  • 一个VC++不错的补丁

    一个VC++不错的补丁,能使文字分类显示不同色,有助程序的编写

    标签: VC 补丁

    上传时间: 2015-08-23

    上传用户:ayfeixiao

  • 本文较为详细的介绍了将Linux移植到S3C2410平台的过程

    本文较为详细的介绍了将Linux移植到S3C2410平台的过程,十分适合于使用ARM9+Linux开发的初学者阅读。如果可以紧跟本文档中介绍的开发步骤,按部就班的进行实验,相信可以很快的了解嵌入式Linux的移植以及之上驱动程序的编写。

    标签: S3C2410 Linux 移植 过程

    上传时间: 2015-08-28

    上传用户:225588

  • 在信息信号处理过程中

    在信息信号处理过程中,如对信号的过滤、检测、预测等,都要使用滤波器,数字滤波器是数字信号处理(DSP,DigitalSignalProcessing)中使用最广泛的一种器件。常用的滤波器有无限长单位脉冲响应(ⅡR)滤波器和有限长单位脉冲响应(FIR)滤波器两种[1],其中,FIR滤波器能提供理想的线性相位响应,在整个频带上获得常数群时延从而得到零失真输出信号,同时它可以采用十分简单的算法实现,这两个优点使FIR滤波器成为明智的设计工程师的首选,在采用VHDL或VerilogHDL等硬件描述语言设计数字滤波器时,由于程序的编写往往不能达到良好优化而使滤波器性能表现一般。而采用调试好的IPCore需要向Altera公司购买。笔者采用了一种基于DSPBuilder的FPGA设计方法,使FIR滤波器设计较为简单易行,并能满足设计要求。

    标签: 信号处理 过程

    上传时间: 2014-01-21

    上传用户:ruan2570406

  • 文件名:main.asm 完成对从键盘输入的0-9的数的存入 完成对从键盘输入回车、"ESC"键及“+”

    文件名:main.asm 完成对从键盘输入的0-9的数的存入 完成对从键盘输入回车、"ESC"键及“+”,“-”,“*”,“/”键的分析及对加、减、乘、除过程的调用。 完成对从键盘输入错误数据的分析 程序在编写过程中使用了宏,模块。供汇编程序初学者及爱好者参考。

    标签: main asm ESC 键盘

    上传时间: 2015-08-30

    上传用户:skhlm