zzu_lmc
zzu_lmc
全部文章
算法
acm(2)
codeforces(5)
java(3)
leetcode(1)
other(1)
博弈论(2)
并查集(1)
数论(1)
未归档(133)
水题(1)
百度之星(1)
莫比乌斯反演(1)
计算几何(1)
贪心(3)
归档
标签
去牛客网
登录
/
注册
zzu_lmc的博客
全部文章
/ 算法
(共44篇)
L2-017
转自点击打开链接 #include<bits/stdc++.h> using namespace std; int main() { int n,sum=0,half=0; scanf("%d",&n); vector<int&g...
排序
2018-03-28
0
407
L2-16
转自点击打开链接 出现在输入输出函数中的%*c ,作用是在输入或输出时,跳过一个变量,例如:void main(){ int i=1,j=2,k=3; printf("%d,%*d,%d\n",i,j,k,i);//遇到%*d,就把j跳过了,输出k,故后面应该放4个变量}程...
dfs
2018-03-28
0
381
L2-015
转自点击打开链接 #include<cstdio> #include<vector> #include<algorithm> using namespace std; int cmp1(double a,double b){return a>b;} int ...
vector
2018-03-26
0
461
L2-014 列车调度 STL set
转自点击打开链接 #include<iostream> #include<set> using namespace std; int main() { int n,t; cin>>n; set<int >s; s.ins...
set
2018-03-26
0
435
L2-013
转自点击打开链接 #include<cstdio> #include<algorithm> #include<cstring> using namespace std; bool vis[510]; int e[510][510],n,m,k; void dfs(...
dfs
连通分量
2018-03-26
0
398
L2-012
转自点击打开链接 #include<cstdio> #include<vector> #include<cstring> using namespace std; vector<int>v; int n; void updajust(int i) { ...
堆
向上插入
2018-03-26
0
443
L2-021
转自点击打开链接 #include<iostream> #include<map> #include<cmath> #include<cstdio> #include<algorithm> using namespace std; stru...
map
2018-03-25
0
417
L2-011
转自点击打开链接 #include<csdtio> #include<vector> using namespace std; vector<int>in,pre,level(10000,-1); void levelorder(int root,int star...
树的遍历
2018-03-25
0
334
L2-010
转自点击打开链接 #include<cstdio> #include<vector> using namespace std; vector<int>fri; int enemy[101][101]; int findfri(int x){ while(x!...
并查集
2018-03-25
0
414
L2-009
转自点击打开链接 #include<cstdio> #include<vector> #include<algorithm> using namespace std; struct node{ int id,total,getnum; }; bool cmp...
vector
2018-03-25
0
448
首页
上一页
1
2
3
4
5
下一页
末页