主席树/转自b站agoh #include<iostream> #include <vector> #include <algorithm> using namespace std; const int maxn = 2e5 + 5; int a[maxn]; std::vector<int> v; ...
分类:
其他好文 时间:
2020-04-29 00:53:14
阅读次数:
48
"题目" For their physical fitness program, $N (2 ≤ N ≤ 1,000,000)$ cows have decided to run a relay race using the $T (2 ≤ T ≤ 100)$ cow trails througho ...
分类:
其他好文 时间:
2020-04-28 15:29:35
阅读次数:
57
1,MD5 用途: 1 防止明文:加密后保存比较安全,下次加密检验;密码要复杂一点 2 防篡改:文件上传;文件下载防挂马;svn 3 防止抵赖:需要一个第三方认证,数字签名 1 /// <summary> 2 /// 不可逆加密 3 /// 1 防止被篡改 4 /// 2 防止明文存储 5 /// ...
分类:
其他好文 时间:
2020-04-28 11:13:56
阅读次数:
79
题目描述 土豪YZK在一块小岛上有着一大片n*m的梯田,每块1*1的田地都有它的高度。奴隶们不甘被YZK剥削,他们联合起来决定发动一场海啸淹掉YZK的梯田,因为要留一部分给自己吃,所以他们决定至少淹掉p块田地,但是不能超过q块田地,否则会因为剩下的田地不够而把奴隶自己饿死。现在给你一个n*m的矩阵, ...
分类:
其他好文 时间:
2020-04-27 22:56:25
阅读次数:
91
什么是MD5Message Digest Algorithm MD5(中文名为消息摘要算法第五版)为计算机安全领域广泛使用的一种散列函数,用以提供消息的完整性保护。该算法的文件号为RFC 1321(R.Rivest,MIT Laboratory for Computer Science and RS ...
分类:
编程语言 时间:
2020-04-26 21:24:03
阅读次数:
87
用两个栈来模拟光标的移动,sum来维护A栈的前缀和,f用来维护最大值。 1 #include <iostream> 2 #include <algorithm> 3 #include <stack> 4 using namespace std; 5 stack<int> A, B; 6 conste ...
分类:
其他好文 时间:
2020-04-26 15:31:11
阅读次数:
61
1 //无向图求割边 2 #include <cstdio> 3 #include <cstdlib> 4 #include <cstring> 5 #include <cmath> 6 #include <algorithm> 7 #include <queue> 8 #include <stac ...
分类:
其他好文 时间:
2020-04-26 14:05:12
阅读次数:
57
1 //zoj 2859 2 // 二维线段树之矩形树 求解矩阵和问题 3 #include <cstdio> 4 #include <cstdlib> 5 #include <cstring> 6 #include <cmath> 7 #include <algorithm> 8 #include ...
分类:
其他好文 时间:
2020-04-26 14:00:38
阅读次数:
64
1 //A vector不T 2 // 最短路 SPFA 3 // in数组 4 5 #include<cstdio> 6 #include<cstdlib> 7 #include<cstring> 8 #include<cmath> 9 #include<algorithm> 10 #includ ...
分类:
其他好文 时间:
2020-04-26 13:56:55
阅读次数:
47
A - Buggy Sorting Little boy Valera studies an algorithm of sorting an integer array. After studying the theory, he went on to the practical tasks. As ...
分类:
其他好文 时间:
2020-04-26 11:23:37
阅读次数:
70