码迷,mamicode.com
首页 >  
搜索关键字:multiply    ( 344个结果
LeetCode: Multiply Strings. Java
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. public class Solution { //模拟手算乘法 ...
分类:编程语言   时间:2014-10-29 09:14:28    阅读次数:168
leetcode 第42题 Multiply Strings
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:其他好文   时间:2014-10-28 00:23:08    阅读次数:321
UVA_Product
DescriptionProductThe ProblemThe problem is to multiply two integers X, Y. (0 2 #include 3 #include 4 #include 5 #define UNIT 10 6 7 using n...
分类:其他好文   时间:2014-10-25 15:53:01    阅读次数:251
leetcode - Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. class Solution { public: std::str...
分类:其他好文   时间:2014-10-25 09:21:02    阅读次数:155
Exercise 21: Functions Can Return Something
def add(a, b):print "ADDING %d + %d" % (a, b)return a + bdef subtract(a, b):print "SUBTRACTING %d - %d" % (a, b) return a - bdef multiply(a, b): ...
分类:其他好文   时间:2014-10-24 10:47:09    阅读次数:243
Multiply Strings
[leetcode]Given two numbers represented as strings, return multiplication of the numbers as a string....
分类:其他好文   时间:2014-10-09 16:02:38    阅读次数:174
Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-10-05 20:05:58    阅读次数:208
[LeetCode] Multiply Strings 字符串相乘
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 这个题说数可能是任意的大的非负数,肯定不是让你直接乘起来返回(我干了。。)而是...
分类:其他好文   时间:2014-09-30 06:45:32    阅读次数:167
[JAVA]HDU 4919 Exclusive or
题意很简单, 就是给个n, 算下面这个式子的值.重点是n的范围:2≤n0) 38 sum=sum.add(ji); 39 ji=ji.multiply(er); 40 a[i+1]=sum; 41...
分类:编程语言   时间:2014-09-29 21:16:41    阅读次数:389
[JAVA]各种杂七杂八的东西......
BigInteger / BigDecimal / string 一些常用的函数:加 add减 substract乘 multiply除 divid取余 mod次幂 pow(int)比较 compareTo / equals判断是否某string开头(是否0开头) startsWith("0").....
分类:编程语言   时间:2014-09-28 00:18:50    阅读次数:323
344条   上一页 1 ... 29 30 31 32 33 ... 35 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!