码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
URAL 1014 Product Of Digits
注意特判 0 1分解因子 从9到2 1 import java.util.Scanner; 2 3 public class P1014 4 { 5 public static void main(String args[]) 6 { 7 try (Scanner ...
分类:其他好文   时间:2014-08-26 01:46:25    阅读次数:243
计算机的存储单位
计算机的存储单位位 bit (比特)(Binary Digits):存放一位二进制数,即 0 或 1,最小的存储单位。字节 byte:8个二进制位为一个字节(B),最常用的单位。即1B(byte 字节) = 8 bit计算机存储单位一般用B,KB,MB,GB,TB,PB,EB,ZB,YB,BB来表示...
分类:其他好文   时间:2014-08-25 22:46:24    阅读次数:270
【Leet Code】Reverse Integer——“%”你真的懂吗?
Reverse Integer  Total Accepted: 27372 Total Submissions: 68133My Submissions Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 题目咋看起...
分类:其他好文   时间:2014-08-25 21:12:54    阅读次数:198
Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-08-25 14:42:24    阅读次数:138
projecteuler---->problem=34----Digit factorials
Problem 34 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Find the sum of all numbers which are equal to the sum of the factorial of their digits. Note: as 1! = 1 and 2! = 2 are...
分类:其他好文   时间:2014-08-25 11:59:14    阅读次数:243
LeetCode: Sum Root to Leaf Numbers
LeetCode: Sum Root to Leaf NumbersGiven a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is t...
分类:其他好文   时间:2014-08-24 20:41:33    阅读次数:175
【Leet Code】Add Two Numbers
Add Two Numbers  Total Accepted: 20255 Total Submissions: 88115My Submissions You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order a...
分类:其他好文   时间:2014-08-23 21:40:01    阅读次数:200
UVA - 1350 Pinary (递推)
Description ``Pinary" number is a positive number using only two digits ``0" and ``1" with usual rule that it must not begin with a 0, and the additional rule that two successive digits must not be...
分类:其他好文   时间:2014-08-22 21:16:19    阅读次数:237
Restore IP Addresses
Restore IP Addresses  Total Accepted: 12696 Total Submissions: 61955My Submissions Given a string containing only digits, restore it by returning all possible valid IP address combinations...
分类:其他好文   时间:2014-08-22 21:15:49    阅读次数:277
projecteuler---->problem=35----Circular primes
Problem 35 The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13,...
分类:其他好文   时间:2014-08-22 17:52:39    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!