9.1 Relations and Their Properties(关系及关系性质) 1.基本概念 Ordered pair(序偶) =(a2, b2)") ...
分类:
其他好文 时间:
2019-09-16 19:50:07
阅读次数:
72
https://nanti.jisuanke.com/t/41415 因为对于询问$\sum |s|<=1e5$,因此$|s|$的种类数$<=\sqrt{1e5}$ 我们分组标记,就变成了$\sqrt{1e5}$次询问了,我们暴力去跑, 复杂度$1e5\sqrt{1e5}*hashmap$ 暴力+哈 ...
分类:
其他好文 时间:
2019-09-16 10:04:19
阅读次数:
79
The Floyd Warshall Algorithm is for solving the All Pairs Shortest Path problem. The problem is to find the shortest distances between every pair of v ...
分类:
其他好文 时间:
2019-09-16 09:43:09
阅读次数:
92
参考:https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/discuss/382775/Python3-straightforward-and-easiest-on-discussion ...
分类:
其他好文 时间:
2019-09-16 00:12:53
阅读次数:
81
对于被管理服务器做免密码登录设置 1.在管理服务器生成ssh-key密钥 #ssh-keygen //生成秘钥 root@hsz:/etc/ansible# ssh-keygen Generating public/private rsa key pair. Enter file in which ...
分类:
其他好文 时间:
2019-09-14 23:01:11
阅读次数:
190
A. 2:40:11(-7) solved by zcz 通过旋转使得抓人的在左下角,逃得在右上角 结论是逃得一定在右上 或者 右下 左上被抓住,找到规律枚举一下即可 #include<iostream> #include<cstring> #include<cstdio> #include<alg ...
分类:
其他好文 时间:
2019-09-14 19:11:21
阅读次数:
125
1 #include 2 using namespace std; 3 4 struct Node{ 5 string name; 6 int straight; 7 pair four; 8 pair full; 9 pair three; 10 pair,int> twopair; 11 pa.... ...
分类:
其他好文 时间:
2019-09-14 18:40:04
阅读次数:
79
#define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;#define BUF_SIZE 100000bool IOerror=0;//加了读入挂才1900ms+卡ddl过的,不加读入代码tleT_Tinline ...
分类:
其他好文 时间:
2019-09-14 11:09:41
阅读次数:
71
同样鸽了很久的三维偏序,不同点在于保证没有重复的三元组,但是要求的是严格大于。 基本思路跟带等号的cdq一模一样,但是要极度注意一个细节 比如有两个三元组(1 1 1)和(1 2 3),在三个元素都严格大于的情况下,显然第二个三元组不能大于第一个三元组 这意味着在对初始序列执行第一次排序的时候,首先 ...
分类:
其他好文 时间:
2019-09-12 23:24:54
阅读次数:
130
You are given an array aa consisting of nn integers, and qq queries to it. ii th query is denoted by two integers lili and riri. For each query, you h ...
分类:
其他好文 时间:
2019-09-12 15:06:55
阅读次数:
85