```cpp //#pragma GCC optimize(2) #include #define ll long long #define ld long double #define pb push_back #define mp make_pair #define X first #defin... ...
分类:
其他好文 时间:
2019-11-13 00:25:38
阅读次数:
164
Valya and Tolya are an ideal pair, but they quarrel sometimes. Recently, Valya took offense at her boyfriend because he came to her in t-shirt with le ...
分类:
其他好文 时间:
2019-11-12 22:03:49
阅读次数:
117
"题目" 一眼题。 缩点然后dp。 注意一下计算一条边经过无限次可以获得多少价值这个东西要用到平方和公式。 $\sum\limits_{i=1}^ni^2=\frac{i(i+1)(2i+1)}6$ ...
分类:
其他好文 时间:
2019-11-11 19:55:56
阅读次数:
72
题目链接: #include <bits/stdc++.h> using namespace std; #define ll long long #define re register #define pb push_back #define fi first #define se second c ...
分类:
其他好文 时间:
2019-11-11 18:30:21
阅读次数:
119
#define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;pair<int,int>a[200007];int n;long long s;bool check(int x){ int num=0; long lon ...
分类:
其他好文 时间:
2019-11-11 09:39:47
阅读次数:
72
[TOC] 总所周知,Emacs是神的编译器!!! 参考文献 咕咕日报:https://www.luogu.org/blog/Arthas gray/emacs wei ru men xue xi bi ji wiki:https://oi wiki.org/intro/editor/emacs/ ...
分类:
系统相关 时间:
2019-11-10 15:58:52
阅读次数:
98
vector, 变长数组,倍增的思想 size() 返回元素个数 empty() 返回是否为空 clear() 清空 front()/back() push_back()/pop_back() begin()/end() [] 支持比较运算,按字典序 pair<int, int> first, 第一 ...
创建公私钥对连接远程仓库 参考 步骤 在本地生成 rsa 公私钥。直接回车。名称必须是默认的 。 将公钥保存到码云 测试连接生成 文件,测试连接的时候要输入 不能直接回车 ssh keygen生成公私钥 码云配置公钥 设置 安全设置 SSH公钥 测试连接生成know_hosts文件 注意 私钥名称必 ...
分类:
其他好文 时间:
2019-11-09 11:39:53
阅读次数:
98
详解C++ STL priority_queue 容器 本篇随笔简单介绍一下$C++STL$中$priority_queue$容器的使用方法和常见的使用技巧。 priority_queue容器的概念 $priority_queue$在英文中是优先队列的意思。 队列是一种基本的数据结构。其实现的基本示 ...
分类:
编程语言 时间:
2019-11-08 20:58:53
阅读次数:
72
CodeForces - 1154G You are given an array a consisting of n integers a1,a2,…,an . Your problem is to find such pair of indices i,j (1≤i<j≤n) that lcm( ...
分类:
其他好文 时间:
2019-11-08 16:22:08
阅读次数:
88