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

C<b>On</b>verter

  • 数字运算

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

  • 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

  • 一个人力资源管理系统的实现

    一个人力资源管理系统的实现,采用了C/S和B/S混合的软件体系结构,包括从问题分析到具体实现的全过程

    标签: 人力资源管理系统

    上传时间: 2013-12-16

    上传用户:litianchu

  • 使用工具为.net2003

    使用工具为.net2003,涉及的语言包括c#、vb.net、托管c++,集C/S和B/S模式于一体,最主要一点是文档相当齐全。

    标签: 2003 net

    上传时间: 2015-09-04

    上传用户:busterman

  • 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

  • The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical)

    The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).

    标签: converts Toolbox complex logical

    上传时间: 2016-02-12

    上传用户:a673761058

  • 按照Clifford A . Shaffer《数据结构与算法分析(第二版)》指导

    按照Clifford A . Shaffer《数据结构与算法分析(第二版)》指导,用C#实现的B+树,接口定义良好。最好重写“从文件载入新建树部分”的代码以提高建树效率。实现细节之一:当“需要插入子节点的节点”已满而相邻节点未满时会平分两者节点而不是分裂该节点。

    标签: Clifford Shaffer 数据结构 算法分析

    上传时间: 2016-07-02

    上传用户:362279997

  • 基于C_S与B_S模式的学分制教学管理系统

    基于C_S与B_S模式的学分制教学管理系统,对C/S,B/S两种模式进行了比较详细的介绍

    标签: C_S B_S 模式

    上传时间: 2014-09-10

    上传用户:lxm

  • vmware中文教程

    vmware中文教程,你想让你的电脑变成多台进行使用吗?你也为没有多台电脑在多平台环境下进行C/S或B/S编程感到苦恼吗?请参考该文档,可以轻松解决你的问题,让你彻底发挥你的电脑的功能,可以一台变成多台并且在多个操作系统平台下进行使用。

    标签: vmware 教程

    上传时间: 2016-11-09

    上传用户:daguda

  • 使用微芯公司的PIC8F458单片机

    使用微芯公司的PIC8F458单片机,用C语言实现B口电平变化中断程序,并且在中断中用C实现步进电机的驱动程序。

    标签: F458 PIC8 PIC 458

    上传时间: 2016-11-20

    上传用户:ippler8