#encoding=utf-8import randomfrom copy import copy def directInsertSort(seq): """ 直接插入排序 """ size = len(seq) for i in range(1,size): t...
分类:
编程语言 时间:
2014-07-16 18:11:59
阅读次数:
255
import sys class Stats: def __init__(self, sequence): # sequence of numbers we will process # convert all items to floats for numeri...
分类:
编程语言 时间:
2014-07-16 18:06:48
阅读次数:
257
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.下面是百度得到的关于罗马数的解释:我的代码: 1 class Solution { 2 ...
分类:
其他好文 时间:
2014-07-16 18:00:22
阅读次数:
214
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1-...
分类:
其他好文 时间:
2014-07-16 17:30:52
阅读次数:
230
B - Adding Reversed Numbers
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld
& %llu
Submit Status
Description
The Antique Comedians of Malidinesia prefer comedies to...
分类:
其他好文 时间:
2014-07-16 17:16:04
阅读次数:
207
第一次看到段更斐波那契数列的,整个人都不会好了。事后看了题解才明白了一些。首先利用二次剩余的知识,以及一些数列递推式子有下面的至于怎么解出x^2==5(mod 10^9+9),我就不知道了,但是要用的时候可以枚举一下,把这些参数求出来之后就题目就可以转化为维护等比数列。由于前面的常数可以最后乘,所以...
分类:
其他好文 时间:
2014-07-15 22:52:58
阅读次数:
567
题意:http://acdream.info/problem?pid=1112Problem DescriptionHere is Alice and Bob again !Alice and Bob are playing a game. There are several numbers.Fir...
分类:
其他好文 时间:
2014-07-14 23:51:56
阅读次数:
425
??
----手工创建oracle 快照
BEGIN
DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();
END;
/
---删除快照
具体快照信息可以查看视图 DBA_HIST_SNAPSHOT
BEGIN
DBMS_WORKLOAD_REPOSITORY.DROP_SNAPSHOT_RANGE (low_snap_id => 22, ...
分类:
数据库 时间:
2014-07-14 18:44:31
阅读次数:
460
多线程下载由来已久,如FlashGet、NetAnts等工具,它们都是依懒于HTTP协议的支持(Range字段指定请求内容范围),首先能读取出请求内容(即欲下载的文件)的大小,划分出若干区块,把区块分段分发给每个线程去下载,线程从本段起始处下载数据及至段尾,多个线程下载的内容最终..
分类:
编程语言 时间:
2014-07-14 16:23:55
阅读次数:
210
G - Self Numbers(2.2.1)
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
In 1949 the Indian mathematician D.R. Kaprekar discovered...
分类:
其他好文 时间:
2014-07-14 16:18:29
阅读次数:
194