题意:给你n个由小写字母组成的字符串S,求出能找到k个S的新字符串,并且尽量短 考察nxt数组的含义 #include <iostream> #include <cstring> #include <cstdio> #include <algorithm> using namespace std; ...
分类:
其他好文 时间:
2020-04-21 10:11:00
阅读次数:
66
小计算器 上一轮运算的结果,是下一轮运算的第一个算子。进制也是。 #include<iostream> #include<algorithm> #include<string> const long long MAX=2E5+7; using namespace std; long long n,j ...
分类:
其他好文 时间:
2020-04-20 14:07:32
阅读次数:
58
//把数组排成最小的数#include "stdafx.h"using namespace std;#include <string>#include <vector>#include <map>#include<algorithm>class Solution{public: string fin ...
分类:
编程语言 时间:
2020-04-19 17:57:25
阅读次数:
72
对称加密(symmetric encryption) 1. 对称加密就是加密/解密都用相同密钥的加密算法 2. 明文(plaintext) :指任何没有经过加密的信息 3. 加密算法(encryption algorithm) :对明文进行替换,变形等操作的步骤规则 4. 密钥(secret key ...
分类:
编程语言 时间:
2020-04-18 23:17:57
阅读次数:
99
1005 继续(3n+1)猜想 (25分) 卡拉兹(Callatz)猜想已经在1001中给出了描述。在这个题目里,情况稍微有些复杂。 当我们验证卡拉兹猜想的时候,为了避免重复计算,可以记录下递推过程中遇到的每一个数。 例如对 n=3 进行验证的时候,我们需要计算 3、5、8、4、2、1,则当我们对 ...
分类:
编程语言 时间:
2020-04-18 23:02:40
阅读次数:
63
1.树状数组:题目:UVA1428 1 #include<iostream> 2 #include<algorithm> 3 #include<cstdio> 4 #include<string> 5 #include<cstring> 6 #include<numeric> 7 #include< ...
分类:
其他好文 时间:
2020-04-18 20:11:25
阅读次数:
110
#include <cstdio> #include <cmath> #include <cstring> #include <queue> #include <iostream> #include <algorithm> using namespace std; int h[50001],ne[5 ...
分类:
其他好文 时间:
2020-04-18 20:10:11
阅读次数:
64
求a^k % p,(1 <= a, k, p <=10^9) #include <iostream> #include <algorithm> using namespace std; typedef long long LL; LL qmi(int a, int b, int p) { LL re ...
分类:
其他好文 时间:
2020-04-18 13:37:54
阅读次数:
60
#include<iostream> #include<cstdio> #include<queue> #include<cstring> #include<algorithm> typedef long long LL; using namespace std; LL RD(){ LL out = ...
分类:
其他好文 时间:
2020-04-17 23:54:45
阅读次数:
129