题目神题。记得当初DYF和HZA讲过一个FFT+KMP的题目,一直觉得很神,从来没去做。没有真正理解FFT的卷积。首先考虑暴力。只考虑前7位 KMP 找出所有 B 串可以匹配 A 串的位置。设 a(i) = A(i) & 1, b(i) = B(i) & 1然后相当于求所有的c(i) = ∑k=0m...
分类:
其他好文 时间:
2015-06-03 19:22:41
阅读次数:
130
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] ...
分类:
其他好文 时间:
2015-06-02 20:03:40
阅读次数:
160
1654. Cipher Message
Time limit: 1.0 second
Memory limit: 64 MB
Müller tried to catch Stierlitz red-handed many times, but alwaysfailed because Stierlitz could ever find some excuse. Once Sti...
分类:
其他好文 时间:
2015-05-30 14:59:32
阅读次数:
125
#include using namespace std;int main(){int k,i;char s[5];cin>>k;for(;k>=26;)k%=26;for(i=0;i>s[i];if(('a'<=s[i]&&s[i]<='z')||('A'<=s[i]&&s[i]<='Z')...
分类:
其他好文 时间:
2015-05-29 00:34:37
阅读次数:
183
From: http://m.blog.csdn.net/blog/langkeziju/13511411我的MySQL版本为5.6.14版本,是二进制包安装的(虽然是二进制包安装的,但是以下问题同样适用于源码安装包安装的MySQL)今天在我的测试库上添加一个新用户,报错:[mysql@ydrh2 ...
分类:
数据库 时间:
2015-05-24 23:06:04
阅读次数:
652
JAVA加密:package webdomain;import java.security.Key; import java.security.spec.AlgorithmParameterSpec; import javax.crypto.Cipher;import javax.cr...
分类:
编程语言 时间:
2015-05-21 15:31:40
阅读次数:
161
- Use certificates with at least sha-256 hash algorithms (including intermediate certificates).- Use strong cipher suites (only 3 are allowed on my se...
分类:
其他好文 时间:
2015-05-16 01:28:28
阅读次数:
160
package my;import java.security.SecureRandom;import javax.crypto.Cipher;import javax.crypto.SecretKey;import javax.crypto.SecretKeyFactory;import java...
分类:
其他好文 时间:
2015-05-14 20:05:57
阅读次数:
150
public function encrypt($str) { //$str = "hh"; $key = "key:123";//密钥 $cipher = MCRYPT_DES; $models ...
分类:
Web程序 时间:
2015-05-14 06:10:16
阅读次数:
481
最新一应用 ,发现有2G以上的内存不释放
代码问题点:
Cipher ci = Cipher.getInstance("RSA", new BouncyCastleProvider());
代码修改正点:
public static synchronized BouncyCastleProvider getInstance() {
if (bouncyCastleProvi...
分类:
其他好文 时间:
2015-05-12 17:12:55
阅读次数:
105