摘要: 骇人听闻的数据: 75分乱搞DFS: SPFA正解: 阅读全文
posted @ 2016-11-10 17:42 前前前世。 阅读(241) 评论(0) 推荐(1) 编辑
摘要: 源代码: #include #include #include using namespace std; int m,n,Num(0),Ans(0),A[201],B[201],C[201],D[201],i[3001],j[3001],f[100001]; void Solve(int S,int V,int W) //二进制优化。 { for (int a=1;a=j[a];... 阅读全文
posted @ 2016-11-10 14:13 前前前世。 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 源代码: #include #include #define LL long long using namespace std; LL n,m,k,i1[200001],i2[200001]; bool Check(LL T) { LL Sum=0,Num=m; for (int a=1;a=1&&i1[a]*i2[Num]>T) Num--; ... 阅读全文
posted @ 2016-11-10 14:06 前前前世。 阅读(307) 评论(0) 推荐(0) 编辑