上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N=2000; 4 char c1[N],c2[N]; 5 int n,m,f[N][N]; 6 int main() { 7 scanf("%d", &n); 8 scanf 阅读全文
posted @ 2019-07-23 20:02 Snow_in_winer 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int m=6000; 4 int f[1010][m*2+2],n,a[2000],b[2000],k; 5 int main() { 6 memset(f, 0x3f, sizeo 阅读全文
posted @ 2019-07-23 19:49 Snow_in_winer 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=3000; 4 char c1[N],c2[N]; 5 int l1,l2,d[N][N],k; 6 int main() { 7 scanf("%s", c1); 8 sc 阅读全文
posted @ 2019-07-23 19:03 Snow_in_winer 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int inf=0x3f3f3f3f; 4 typedef long long ll; 5 const int M=300001; 6 const int N=100001; 7 st 阅读全文
posted @ 2019-07-23 17:22 Snow_in_winer 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 const int N=100000; 3 using namespace std; 4 vector<int>E[N]; 5 int in[N],n,pos,flag,ok,m,sort1[N],stop,tmp[N]; 6 char X, 阅读全文
posted @ 2019-07-23 15:57 Snow_in_winer 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n,m,k; 4 const int maxn=1e6+10; 5 const int maxm=9e6+10; 6 const int inf=0x3f3f3f3f; 7 struct D 阅读全文
posted @ 2019-07-23 11:32 Snow_in_winer 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Path 先跑两遍最短路,正着一边,反着一遍,求出最短路的图,在新图上求最小割 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=1e4+7; 4 const int maxm=2e4+7; 5 #define ll 阅读全文
posted @ 2019-07-22 19:58 Snow_in_winer 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 typedef long long ll; 5 char c[1000]; 6 ll l,k1,k2,k3,k4,k,kk,d; 7 8 int main(){ 9 while (~scanf 阅读全文
posted @ 2019-07-21 20:28 Snow_in_winer 阅读(126) 评论(0) 推荐(0) 编辑
摘要: A.Eddy Walker B.Eddy Walker 2 C.Go on Strike! D.Kth Minimum Clique E.MAZE F.Partition problem G.Polygons H.Second Large Rectangle 1 #include<bits/stdc 阅读全文
posted @ 2019-07-20 17:37 Snow_in_winer 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1.若有1克、2克、3克、4克的砝码各一 枚,能称出哪几种重量?各有几种可能方案? 如何解决这个问题呢?考虑构造母函数。如果用x的指数表示称出的重量,则: 1个1克的砝码可以用函数1+x表示, 1个2克的砝码可以用函数1+x2表示, 1个3克的砝码可以用函数1+x3表示, 1个4克的砝码可以用函数1 阅读全文
posted @ 2019-07-19 21:46 Snow_in_winer 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页