码迷,mamicode.com
首页 >  
搜索关键字:single number    ( 31458个结果
sdut 2610:Boring Counting(第四届山东省省赛原题,划分树 + 二分)
Boring CountingTime Limit: 3000ms Memory limit: 65536K有疑问?点这里^_^题目描述 In this problem you are given a number sequence P consisting of N integer and Pi....
分类:其他好文   时间:2014-05-08 19:17:31    阅读次数:473
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
lua中打印所以类型功能实现table嵌套table
lua中打印所以类型功能实现 本人测试 number、string、bool、nil、table嵌套table、userdata没问题 共享一下有什么问题请拍砖 代码如下 cclog = function( ... ) local tv = "\n" local xn = 0 local function tvlinet(xn) -- body...
分类:其他好文   时间:2014-05-07 21:51:38    阅读次数:347
hdu 3006 The Number of set(思维+壮压DP)
The Number of set Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1056    Accepted Submission(s): 655 Problem Description Given you n s...
分类:其他好文   时间:2014-05-07 21:35:32    阅读次数:381
Leetcode:Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 解题想法: 其实判断一个直线上最好的方法是判断斜率。如果在同一直线上,那么直线上一点与其他点的斜率相...
分类:其他好文   时间:2014-05-07 21:13:02    阅读次数:323
Oracle中的SQL%ROWCOUNT
sql%rowcount用于记录修改的条数,就如你在sqlplus下执行delete from之后提示已删除xx行一样,这个参数必须要在一个修改语句和commit之间放置,否则你就得不到正确的修改行数。例如:SQL> declare n number; 2 begin 3 insert into t...
分类:数据库   时间:2014-05-07 17:21:07    阅读次数:386
LeetCode:Maximum Subarray
题目链接 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,...
分类:其他好文   时间:2014-05-07 16:42:42    阅读次数:287
shell 进制转换
包括:i.任意进制转化为十进制((num=base#number)) 【base和number必须一致,是同一种进制】ii.十进制转化为任意进制`echo "obase=进制;值"|bc` 和`echo "值 进制 o p"|bc` 【这里的值代表十进制数字】iii.任意进制互转;有了i和ii就可以...
分类:其他好文   时间:2014-05-07 16:40:14    阅读次数:272
mutiple cycle cpu (转)
言简意赅A single instruction enters the CPU at the Fetch stage and the PC is incremented in one clock cycle. In the next clock cycle, the instruction move...
分类:其他好文   时间:2014-05-07 11:23:20    阅读次数:417
ProjectEuler_P12
Problem:The sequence of triangle numbers is generated by adding the natural numbers. So the 7thtriangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28...
分类:其他好文   时间:2014-05-07 00:28:01    阅读次数:365
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!