码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
Math类,System.Math
public static double Round( double value,//要舍入的双精度浮点数。 int digits//返回值中的小数数字。)将双精度浮点值按指定的小数位数舍入。说明:由于用十进制数表示浮点数或对浮点数进行算术运算可能导致的误差,在某些情况下,Round(Double,...
分类:其他好文   时间:2014-06-29 14:30:54    阅读次数:222
pyscripts 中mathstuff calss 的功用
def meanstdev(numlist): 返回一个序列的均值和标准差;def mindivnum(numlist,limit):找出一个整数list (numlist)的最小公倍数,寻找的范围为1~limit;def dec2bin(num,digits):将num转化为2进制字符串,并保留低...
分类:其他好文   时间:2014-05-28 03:20:03    阅读次数:212
leetcode题目:Sum Root to Leaf Numbers和Longest Consecutive Sequence
题目一: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Fin...
分类:其他好文   时间:2014-05-26 04:06:41    阅读次数:248
2014辽宁省赛 Repeat Number
问题 C: Repeat Number 时间限制: 1 Sec  内存限制: 128 MB 提交: 23  解决: 7 [提交][状态][论坛] 题目描述 Definition: a+b = c, if all the digits of c are same ( c is more than ten),then we call a and b are Repeat Number. My...
分类:其他好文   时间:2014-05-26 04:03:34    阅读次数:228
LeetCode:Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are   stored in  reverse order and each of their nodes contain a single digit. Add the two numbers   and return i...
分类:其他好文   时间:2014-05-25 21:36:52    阅读次数:268
LightOJ-1205 - Palindromic Numbers
A palindromic number or numeral palindrome is a 'symmetrical' number like 16461 that remains the same when its digits are reversed. In this problem you will be given two integers i j, you have to find...
分类:其他好文   时间:2014-05-25 07:41:08    阅读次数:253
看个人思路吧,清晰的话就简单 CodeForces 271A - Beautiful Year
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits. Now you are suggested to solve the f...
分类:其他好文   时间:2014-05-24 21:52:34    阅读次数:320
Light0J-1068 - Investigation
An integer is divisible by 3 if the sum of its digits is also divisible by 3. For example, 3702 is divisible by 3 and 12 (3+7+0+2) is also divisible by 3. This property also holds for the integer 9. ...
分类:其他好文   时间:2014-05-24 14:30:47    阅读次数:208
Reverse digits of an integer.
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 class Solution { 2 public: 3 int reverse(int x) { 4 ...
分类:其他好文   时间:2014-05-22 16:26:23    阅读次数:165
leetcode -day20 Add Two Numbers
1、 ?? Add Two Numbers  You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two num...
分类:其他好文   时间:2014-05-21 10:49:10    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!