用lua简单地异或加密文件,注意解密的key是加密key的倒序: 1 require 'bit' 2 3 local encode = function(inpath, outpath, key) 4 local inf = assert(io.open(inpath, "rb")) 5 ...
分类:
其他好文 时间:
2014-08-23 20:15:51
阅读次数:
5713
Divide two integers without using multiplication, division and mod operator.常常出现大的负数,无法用abs()转换成正数的情况class Solution{private: vector f;public: in...
分类:
其他好文 时间:
2014-08-23 17:43:11
阅读次数:
215
Minimal Subarray LengthTime Limit: 3000msMemory Limit: 131072KBThis problem will be judged onUVALive. Original ID:660964-bit integer IO format:%lld Ja...
分类:
其他好文 时间:
2014-08-23 16:43:01
阅读次数:
279
Debian, Mint, Ubuntu, Kubuntu, Xubuntu… ? For?32-bit DEB-systems?you need the?teamviewer_linux.deb?package. For?64-bit DEB-systems without Multiarch?you need the?teamviewer_linux_x64.deb?...
分类:
其他好文 时间:
2014-08-23 01:12:39
阅读次数:
276
Boring countingTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:351864-bit integer IO format:%I64d Java class nam...
分类:
其他好文 时间:
2014-08-22 23:45:39
阅读次数:
187
Description
Problem J
Bits
Input: Standard Input
Output: Standard Output
A bit is a binary digit, taking a logical value of either "1" or "0" (also referred to as "true" or "false" respecti...
分类:
其他好文 时间:
2014-08-22 22:35:36
阅读次数:
278
一、VTK安装环境 1.在win7平台(32位或64位平台下均可,只有一个步骤不同,当然如果你是64位系统使用32位vtk完全可以!) 2.已经安装vs2008(并且已经安装补丁sp1(这是安装qt-addin的前提,所以如果安装好了qt一定是有的) 3.已经在vs2008中集成了qt。...
SQLServer BIT字段存储
Author:zfive5
Email:zfive5@163.com
引子
和同事探讨BIT怎么存储,发生了分歧
create
table A1
(
a
CHAR(5),
b
bit,
c
CHAR(5),
d
BIT
)
由于之前成天再看《存储引擎》,深知这样定义表字段也会把两...
分类:
数据库 时间:
2014-08-21 00:17:13
阅读次数:
401
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2014-08-20 22:21:12
阅读次数:
210
D-CityTime Limit: 1000msMemory Limit: 65535KBThis problem will be judged onHDU. Original ID:449664-bit integer IO format:%I64d Java class name:MainLux...
分类:
其他好文 时间:
2014-08-20 20:58:42
阅读次数:
234