码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
the smallest positive number
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that is...
分类:其他好文   时间:2014-05-08 14:36:50    阅读次数:248
10 001st prime number
这真是一个耗CPU的运算,怪不得现在因式分解和素数查找现在都用于加密运算。By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 1...
分类:其他好文   时间:2014-05-08 11:54:49    阅读次数:260
Leetcode | Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-05-08 06:33:29    阅读次数:339
Pat(Advanced Level)Practice--1060(Are They Equal)
Pat1060代码 题目描述: If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. Now given...
分类:其他好文   时间:2014-05-08 02:07:49    阅读次数:452
POJ 1724 ROADS
点击打开链接 ROADS Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10202   Accepted: 3786 Description N cities named with numbers 1 ... N are connected with o...
分类:其他好文   时间:2014-05-07 23:42:01    阅读次数:617
Iptables用法
[root@localhost~]#iptables-F#清除默认表filter中所有链的规则 [root@localhost~]#iptables-X#清除自定义链的规则 [root@localhost~]#iptables-L-nv--line-numbers#编号显示链规则 [root@localhost~]#iptables-N#新建一条自定义的链 [root@localhost~]#iptables-AINPUT-ieth0#..
分类:其他好文   时间:2014-05-07 22:32:21    阅读次数:466
Sum square difference
简单:e sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 ...
分类:其他好文   时间:2014-05-07 20:23:43    阅读次数:338
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-05-07 13:42:51    阅读次数:278
ProjectEuler_P13
Problem:Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.3710728753390210279879799822083759024651013574025046376...
分类:其他好文   时间:2014-05-07 13:34:38    阅读次数:299
iOS 通过HEX(十六进制)得到一个UIColor的对象
inline static UIColor* getColorFromHex(NSString *hexColor) { if (hexColor == nil) { return nil; } unsigned int red, green, blue; NSRange range; range.length = 2; ...
分类:移动开发   时间:2014-05-07 11:48:26    阅读次数:327
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!