zzu_lmc
zzu_lmc
全部文章
未归档
acm(2)
codeforces(5)
java(3)
leetcode(1)
other(1)
博弈论(2)
并查集(1)
数论(1)
水题(1)
百度之星(1)
算法(44)
莫比乌斯反演(1)
计算几何(1)
贪心(3)
归档
标签
去牛客网
登录
/
注册
zzu_lmc的博客
全部文章
/ 未归档
(共133篇)
hdu 2049错排+排列组合
hdu不支持 #include<bits/stdc++.h> 要换头文件 #include<bits/stdc++.h> using namespace std; #define N 2005 #define inf 0x3f3f3f3f long long f[N],n,m...
2018-04-06
0
321
天梯赛 名人堂与代金券
比赛的时候就得了2分,想不通,代码没有留下来,要不然就能再调调了,觉得没什么问题; #include<bits/stdc++.h> using namespace std; const int maxn=1e4+5; struct node { int rank,score; ...
2018-04-05
0
411
天梯赛 福到了
比赛的时候又zz了,用了个十分复杂的方法,。。。 #include<bits/stdc++.h> using namespace std; int main() { char ch, arr[105][105]; int n, flag = 0; scanf(&q...
2018-04-05
0
491
天梯赛 倒数第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 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
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
L2-024.部落
#include<cstdio> #include<set> #include<iostream> using namespace std; int f[10005]; int findf(int x) { return x==f[x]?x:f[x]=fi...
2018-03-29
0
360
L2-019
转自 点击打开链接 #include<bits/stdc++.h> using namespace std; int main() { int N,M,sum=0,cnt,flag=0; string str; cin>>N; set<s...
2018-03-28
0
369
首页
上一页
5
6
7
8
9
10
11
12
13
14
下一页
末页