zzu_lmc
zzu_lmc
全部文章
分类
acm(2)
codeforces(5)
java(3)
leetcode(1)
other(1)
博弈论(2)
并查集(1)
数论(1)
未归档(133)
水题(1)
百度之星(1)
算法(44)
莫比乌斯反演(1)
计算几何(1)
贪心(3)
归档
标签
去牛客网
登录
/
注册
zzu_lmc的博客
全部文章
(共200篇)
天梯赛 倒数第n个字符串
26进制 比赛时是倒着来的,循环搞不好,只能暴力把所有情况列举,l==2,l==3……ORZ, 学会了正着来 #include<bits/stdc++.h> using namespace std; int p(int l) { int s=1; for(int i=0;...
2018-04-05
0
378
天梯赛 排座位
比赛的时候没想到什么好方法,题虽然看懂了,但要实现要花不少功夫,还不一定对,就放弃了。。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const ll maxn=100+5; int n,m,res...
2018-04-05
0
408
hdu 2048 dp 错排公式
#include<cstdio> using namespace std; int main() { int c,n,j; double sum,i,dp[21]; dp[1]=0; dp[2]=1; printf("%f\n"...
dp
错排公式
2018-04-03
0
395
hdu 1116&&uva10129 欧拉道路
#include<cstring> #include<iostream> #include<cstdio> #include<cmath> #define maxn 30 using namespace std; int vis[maxn],N,T,f...
2018-04-03
0
376
hdu 2047 排列
#include<cstdio> using namespace std; int main() { long long dp[55]; int n; dp[1]=3; dp[2]=8; dp[3]=22; for(int i=4;i<...
2018-04-02
0
322
hdu 2046牌的摆放方式
#include<cstdio> using namespace std; int main() { long long dp[55]; int n; dp[1]=1; dp[2]=2; dp[3]=3; for(int i=4;i<...
dp
递推
2018-04-02
0
397
hdu 2045RGB涂色
#include<cstdio> using namespace std; int main() { long long dp[55]; int n; dp[1]=3; dp[2]=dp[3]=6; for(int i=4;i<52;i++)...
dp
递推
2018-04-02
0
357
L2-020.功夫传人
转自点击打开链接 #include<bits/stdc++.h> using namespace std; vector<vector<int>>v; int n,k; double z,r,result=0.0; bool vis[100010]; void d...
2018-03-30
0
370
L3-010
#include<cstdio> using namespace std; int tree[1<<20]; int num; void BST(int a) { if(tree[a]==0) tree[a]=num; else if(tree...
树
2018-03-29
0
340
L3-03
转自点击打开链接 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #include<queue> using namespace std; ...
并查集
2018-03-29
0
381
首页
上一页
11
12
13
14
15
16
17
18
19
20
下一页
末页