码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
zoj 3557 lucas定理
Given a set S = {1, 2, …, n}, number m and p, your job is to count how many set T satisfies the following condition: T is a subset of S |T| = m T does not contain continuous numbers, that is to say...
分类:其他好文   时间:2015-02-07 16:01:15    阅读次数:142
Oracle分段查询
网上查看分段查询的例子,用的最多的是LAG和LEAD统计函数,Lag和Lead函数可以在一次查询中取出同一字段的前N行的数据和后N行的值。这种操作可以使用对相同表的表连接来实现,不过使用LAG和LEAD有更高的效率。例如:create table TEST ( GRADE NUMBER not null, STUID VARCHAR2(4) ); insert into test (GR...
分类:数据库   时间:2015-02-07 15:56:42    阅读次数:357
LeetCode 016 3Sum Closest
题目描述:3Sum ClosestGiven an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the thre...
分类:其他好文   时间:2015-02-07 15:50:51    阅读次数:129
hdu 3473 Minimum Sum 再来一波划分树,对划分树累觉不爱。
Problem Description You are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a number x to make as small as possible! Input The first line is an integer T (T <= 10), indicat...
分类:其他好文   时间:2015-02-07 14:39:36    阅读次数:205
【SICP练习】28 练习1.34
?? 练习1.34 这道题我一开始不用Edwin的时候觉得是会陷入无限循环之中。后来在Edwin上试了一下才发现会报错,输出如下: (f f) ;The object 2 is notapplicable. ;To continue, call RESTARTwith an option number: ;  (RESTART 2) => Specify a ...
分类:其他好文   时间:2015-02-07 14:35:11    阅读次数:171
Java中Integer类的方法
java.lang 类 Integerjava.lang.Object java.lang.Number java.lang.Integer全部已实现的接口: Serializable, Comparable public final class Integerextends Number...
分类:编程语言   时间:2015-02-07 14:31:14    阅读次数:162
LeetCode 009 Palindrome Number
题目描述:Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie...
分类:其他好文   时间:2015-02-07 14:22:19    阅读次数:175
【SICP练习】10 练习1.34
练习1.34这道题我一开始不用Edwin的时候觉得是会陷入无限循环之中。后来在Edwin上试了一下才发现会报错,输出如下:(f f);The object 2 is not applicable.;To continue, call RESTART with an option number:; (...
分类:其他好文   时间:2015-02-07 14:22:18    阅读次数:183
【LeetCode从零单排】No.9 Palindrome Number
题目      这道题是迄今为止最快通过的一道题,改了两次就过了,runtime一般(中等偏下,这点不太满意)。Palindrome就是判断一个整数是否对称。Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negativ...
分类:其他好文   时间:2015-02-07 13:16:36    阅读次数:141
ural 1009. K-based Numbers dp 高精度
点击打开链接 1009. K-based Numbers Time limit: 1.0 second Memory limit: 64 MB Let’s consider K-based numbers, containing exactly N digits. We define a number to be valid if itsK-based ...
分类:其他好文   时间:2015-02-07 13:14:20    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!