我们会忽略负整数。
给定一个非负整数数组表示一组分数。
否则,任何正整数或负整数都可以用来对结果排序。
Otherwise, any positive or negative integer may be used to rank productions. Now we can run.
你可以假设所有输入数字均为非负整数。
You may assume all Numbers in the input are non-negative integers.
每个参数必须是计算结果为非负整数的表达式。
Each argument must be an expression that evaluates to a nonnegative integer.
第二行是一个不大于五千的非负整数,表示你提问的次数。
In the second line, there is one non-negative integer which is the number of questions asked and answers to them.
本文引进了一个新的记号,研究色多项式的根全为非负整数的图的色性。
In this paper, a new character is used. When all roots of chromatic polynomials of graphs are not minus integers, the author studies the chromaticity of them.
数更多的数学集合中的一元,如负整数或实数,通过归纳正整数而得出。
A member of any of the further sets of mathematical objects, such as negative integers and real Numbers, that can be derived from the positive integers by induction.
注意,我们当计数器i达到1的时候返回了累积的值。我们会忽略负整数。
Note that we return the accumulated value when the counter I reaches 1. we're ignoring invalid negative integers.
给出一个正整数和负整数组成的立方体,找出其中具有最大和的子立方体。
Given a cube of positive and negative integers, find the sub-cube with the largest sum. The sum of a cube is the sum of all the elements in that cube.
因此,如果文本匹配了整个模式,第一组括号将生成表示一个正整数或负整数的的字符串,例如+49。
Hence, if text matched the entire pattern, the first set of parentheses would yield a string representing a positive or negative integer, such as + 49.
给定一个非负整数,将该整数的所有数字的和作为新的整数,重复直至得到只有一个数的整数。
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
给定一组非负整数代表每一件房屋的金钱数,求解在不惊动警察的情况下一晚上最多可以抢到的钱数。
Given a list of non-negative integers representing the amount of money of each house, determine the maximum amount of money you can rob tonight without alerting the police.
比较用来排序的两个参数。根据第一个参数小于、等于或大于第二个参数分别返回负整数、零或正整数。
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
SOAP定义简单的数据类型:字符串、整数、浮点数以及负整数(NegativeInteger)。
SOAP defines simple data types: String, Int, Float, and NegativeInteger.
给定一列非负整数,代表每间房屋的金钱数,计算出在不惊动警察的前提下一晚上最多可以打劫到的金钱数。
Given a list of non-negative integers representing the amount of money of each house, determine the maximum amount of money you can rob tonight without alerting the police.
最后的值必须是一个小于该序列长度的非负整数,然后该序列就被请求将被赋对象赋值给它带那个指标的项。
The resulting value must be a nonnegative integer less than the sequence's length, and the sequence is asked to assign the assigned object to its item with that index.
汪荣明(1993)求出了状态空间为非负整数集的随机环境中随机游动的灭绝概率,并得到明确的表达式。
Wang Rongming(1993) calculated the extinction probabilities for a class of random walk in a random environment with the set of non-negative integers as state space.
本文给出一个不定方程非负整数解的组数的组合计数公式,说明了它在求解一类与数字有关的古典概率方面的应用。
This paper introduces the problems of some identical equation solved by the numerical characters of the classic probability and stochastic variable.
第一个基准条件用来处理非整数;第二个用来处理负整数。在小数或者负数做参数的时候,函数就会输出错误信息,返回空到调用出来表明出错了。
The first base case handles nonintegers; the second handles negative integers. In both cases, the program prints an error message and returns None to indicate that something went wrong.
第一个基准条件用来处理非整数;第二个用来处理负整数。在小数或者负数做参数的时候,函数就会输出错误信息,返回空到调用出来表明出错了。
The first base case handles nonintegers; the second handles negative integers. In both cases, the program prints an error message and returns None to indicate that something went wrong.
应用推荐