码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
LeetCode【202】Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:移动开发   时间:2015-04-22 20:29:42    阅读次数:170
Happy number
题目描述 Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the...
分类:移动开发   时间:2015-04-22 18:40:10    阅读次数:136
cf Beautiful numbers(数位dp)
Beautiful numbers Time Limit:4000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64u Submit Status Practice CodeForces 55D Description Volodya is an odd boy and his taste ...
分类:其他好文   时间:2015-04-22 18:32:11    阅读次数:208
merge sorted array
题目:     Given two sorted integer arrays A and B, merge B into A as one sorted array.     Note:     You may assume that A has enough space to hold additional elements from B. The number of e...
分类:其他好文   时间:2015-04-22 18:20:28    阅读次数:174
Leetcode15: Happy Number
Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares...
分类:移动开发   时间:2015-04-22 18:14:05    阅读次数:109
Python的数据结构 -- 字典
ab = {'001':'李晓诗','002':'胡泽坤','003':'陈春荣','004':'杨松川'}print('003 is %s' % ab['003'])for number,name in ab.items(): print('%s is %s' % (number,name)).....
分类:编程语言   时间:2015-04-22 17:49:36    阅读次数:125
javascript 中string 型数据转换成int类型
var str1 = "1234";var str2 = "1234";number = parseInt(str1);number就是int型 str1+str2结果是"12341234"parseInt(str1)+parseInt(str2)结果就是2468//转载自:http://blog....
分类:编程语言   时间:2015-04-22 17:42:20    阅读次数:133
Python的数据结构 -- 字符串
zoo = ('大象','老虎','狮子','北极熊')print('The animal number of the is ', len(zoo))print('The animal of the zoo are ',zoo)new_zoo = ('孔雀','鳄鱼',zoo)print('The ...
分类:编程语言   时间:2015-04-22 17:40:59    阅读次数:120
unpivot转多列并包含多个名称
CREATE TABLE T5 (idnum NUMBER,f1 NUMBER(10,5),f2 NUMBER(10,5),f3 NUMBER(10,5),e1 NUMBER(10,5),e2 NUMBER(10,5),h1 NUMBER(10,5),h2 NUMBER(10,5)); INSERT INTO T5 (IDNUM,F1,F2,F3,E1,E2,H1,H2) VALUES (1,...
分类:其他好文   时间:2015-04-22 15:24:32    阅读次数:212
Smallest Difference
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5364 Accepted: 1456 Description Given a number of distinct decimal digits, you can form one integer by choosing a non-...
分类:其他好文   时间:2015-04-22 15:16:23    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!