#pragma GCC optimize (3,"inline","Ofast") #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll N=505; const ll inf=1e18; ll n, ...
分类:
其他好文 时间:
2020-05-30 12:55:10
阅读次数:
57
A题,要想前面的差小于后面的,只要排一下序然后先输出中间的,在输出前一个,在输出后一个,然后一直一前一后输出就可以了。 #include<bits/stdc++.h> using namespace std; #define LL long long int main() { int t; cin> ...
分类:
其他好文 时间:
2020-05-30 12:39:20
阅读次数:
53
匈牙利算法 #include <iostream> #include <vector> #include <cstdio> #include <cstring> #include <queue> using namespace std; #define ll long long #define pb ...
分类:
编程语言 时间:
2020-05-29 23:35:50
阅读次数:
77
想明白之后就是,路径条数 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll a,b,c,d; inline ll read() { ll x=0,w=1; char c=getchar(); while(c<' ...
分类:
其他好文 时间:
2020-05-29 09:50:14
阅读次数:
140
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=500005; const ll INF=(1LL<<60)-1; int a[N]; ll sum[N]; int main() { int ...
分类:
其他好文 时间:
2020-05-29 09:43:05
阅读次数:
92
#include<bits/stdc++.h>#define ll long longusing namespace std;/*题意:对一串数,你可以选择任意几个数平分它们,让它们都等于它们加和后的平均数。问最后最多有几个数可以达到给出的x值eg:4 31 1 2 51 3 2 3或1 1 3.5 ...
分类:
其他好文 时间:
2020-05-28 21:52:52
阅读次数:
65
cd /d 进入d盘 cd ..向上一成 pwd 查看在那个目录 ll 查看目录下的文件 clear 清除 ls -a 查看隐藏文件 mkdir 名字 创建文件夹 vim 名字.txt 或者 touch 名字.txt 创建一个文本 创建后点击Insert建添加内容添加完按ESC键:wp保存 vim ...
分类:
其他好文 时间:
2020-05-28 13:30:50
阅读次数:
84
https://ac.nowcoder.com/acm/problem/20861 #include<bits/stdc++.h> #define low(x) (x&(-x)) using namespace std; const int N=1e5+5; typedef long long ll ...
分类:
编程语言 时间:
2020-05-28 11:36:20
阅读次数:
78
题目 原题地址 解说 每次操作看成一个点,用线段树维护区间的积,没什么可说的。 代码 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int Q=1e5+5; inline ll read(){ ll ...
分类:
其他好文 时间:
2020-05-27 20:18:50
阅读次数:
52
#include<bits/stdc++.h> using namespace std; const int N=4e5+10; typedef long long ll; int n,m,r,p; int id[N],w[N],pre[N],top[N],h[N],e[N],ne[N],idx,t ...
分类:
其他好文 时间:
2020-05-27 15:53:01
阅读次数:
51