码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果)
Many Equal Substrings CF - 1029A (KMP)
题意:给你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
C++ 继续(3n+1)猜想
1005 继续(3n+1)猜想 (25分) 卡拉兹(Callatz)猜想已经在1001中给出了描述。在这个题目里,情况稍微有些复杂。 当我们验证卡拉兹猜想的时候,为了避免重复计算,可以记录下递推过程中遇到的每一个数。 例如对 n=3 进行验证的时候,我们需要计算 3、5、8、4、2、1,则当我们对  ...
分类:编程语言   时间:2020-04-18 23:02:40    阅读次数:63
使用NVIDIA开源Python RAPIDS库数据分析
运行结果Rapids_le.out ...
分类:编程语言   时间:2020-04-18 22:36:36    阅读次数:99
代码模板(new)
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
P1396 营救+二分+BFS
#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
共11758条   上一页 1 ... 55 56 57 58 59 ... 1176 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!