官方描述:ipairs(t)Returns three values: an iterator function, the tablet, and 0, so that the constructionfor i,v inipairs(t) dobodyendwill iterate over th...
分类:
其他好文 时间:
2014-06-23 08:19:14
阅读次数:
309
Python中默认的最大递归深度是989,当尝试递归第990时便出现递归深度超限的错误:RuntimeError: maximum recursion depth exceeded in comparison简单方法是使用阶乘重现: 1 #! /usr/bin/env Python 2 3 def....
分类:
编程语言 时间:
2014-06-23 07:40:27
阅读次数:
298
题目描述Given a non-negative integer sequence A with length N, you can exchange two adjacent numbers each time. After K exchanging operations, what’s the ...
分类:
其他好文 时间:
2014-06-22 23:36:42
阅读次数:
232
--Oracle创建表
create table t_test
(
test_id Number ,
gender char(1),
test_name nvarchar2(10) --注意最后一个字段结尾不能有分号
)
--Oralce向t_test表里插入数据
insert into t_test(test_id,gender,test_...
分类:
数据库 时间:
2014-06-22 21:56:45
阅读次数:
272
题目来源:Light OJ 1272 Maximum Subset Sum
题意:选出一些数 他们的抑或之后的值最大
思路:每个数为一个方程 高斯消元 从最高位求出上三角 消元前k个a[i]异或和都能有消元后的异或和组成
消元前
k
个
a[i]
a[i]异或和都能有消元后的
异或和都能有消元后的
p
个
a[i]
a[i]的异或
的异或
保证每一列只有一个1 消元...
分类:
其他好文 时间:
2014-06-22 16:58:09
阅读次数:
231
前言 课前补充知识
Number(p,s)
Number(p,s):数字类型,p 表示数字的有效长度(从数字的左边第 1 位不为 0
的开始算起,直到最右边的长度;取值范围 0~38 位),s 表示数字的精度(即小数点右边的位数,取值范围-84~127 位);
Varchar2(s)
Varchar2(s):可变长的字符类型,s 表示字符串的长度,取值范围 1~4000 位;
...
分类:
数据库 时间:
2014-06-22 15:36:06
阅读次数:
222
Description
Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways:
q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses...
分类:
其他好文 时间:
2014-06-22 14:06:49
阅读次数:
249
Write a function for retrieving the total number of substring palindromes.
For example the input is 'abba' then the possible palindromes= a, b, b, a, bb, abba
So the result is 6.
Updated at 11...
分类:
其他好文 时间:
2014-06-21 23:59:42
阅读次数:
422
Virtualization Basics Virtualization is not a new concept, but its complexity has been growing, and a number of new paradigms are rising. I will try t...
分类:
其他好文 时间:
2014-06-21 18:08:03
阅读次数:
336