Absolute sortLet's try some sorting. Here is an array with the specific rules.The array (a tuple) has various numbers. You should sort it, but sort it...
分类:
其他好文 时间:
2014-08-05 10:50:49
阅读次数:
204
Python数字数据类型用于存储数值。数据类型是不允许改变的,这就意味着如果改变数字数据类型得值,将重新分配内存空间。以下实例在变量赋值时数字对象将被创建:var1=1
var2=10您也可以使用del语句删除一些数字对象引用。del语句的语法是:delvar1[,var2[,var3[....,varN]]]]您..
分类:
编程语言 时间:
2014-08-05 03:11:29
阅读次数:
374
HDU 3117 Fibonacci Numbers(斐波那契前后四位,打表+取对+矩阵快速幂)
ACM
题目地址:HDU 3117 Fibonacci Numbers
题意:
求第n个斐波那契数的前四位和后四位。
不足8位直接输出。
分析:
前四位有另外一题HDU 1568,用取对的方法来做的。
后四位可以用矩阵快速幂,MOD设成10000就行了。
...
分类:
其他好文 时间:
2014-08-05 03:05:38
阅读次数:
208
题目原文:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
其他好文 时间:
2014-08-05 00:51:58
阅读次数:
257
487-3279
Businesses like to have memorable telephone numbers. One way to make a telephone number memorableis to have it spell a memorable word or phrase. For example, yo...
分类:
其他好文 时间:
2014-08-04 21:41:34
阅读次数:
395
ASCII table and descriptionASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII cod...
分类:
其他好文 时间:
2014-08-04 17:31:17
阅读次数:
336
一开始想了一个用二进制状压的方法,发现空间需要的太大,光光memset都要超时 = = 其实不用每次都memset也可以用三进制,一开始直接打表出所有的状态转移就好#include #include #include #include #include #include #include #incl...
分类:
其他好文 时间:
2014-08-04 17:10:47
阅读次数:
259
方法一:使用文件标签EOF重定向的方法的:#!/bin/bash
user=root
pass=123456
db=mysql
tablename=user
mysql-s--line-numbers-f-u$user-p$pass-D$db--delimiter=";"-E<
--SELECThost,userfrom$tablenameorderby1;
SELECThost,userfrom$tablenameorderby1;
quit
EOF优点:sql..
分类:
数据库 时间:
2014-08-04 14:41:58
阅读次数:
234
基于prefix bloomfilter的过滤思想和get_range接口数据的特点,在导师的指导下,提出如下的简单方案,对get_range接口的范围查找过程进行优化,使得能够根据prefix进行过滤,减少无效的磁盘IO。...
分类:
数据库 时间:
2014-08-04 14:35:57
阅读次数:
248
Python2.7在Windows上一个bug,UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 33: ordinal not in range(128)...
分类:
编程语言 时间:
2014-08-04 14:33:57
阅读次数:
426