2014年5月10日

摘要: http://wenku.baidu.com/view/15a6572487c24028915fc347.html 阅读全文
posted @ 2014-05-10 14:44 Fray 阅读(94) 评论(0) 推荐(0) 编辑

2013年11月5日

摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=31317#overview#include #include #include #include using namespace std;const int msize=250;int N,M;int r[msize][msize];int pre[msize];bool vis[msize];bool BFS(int s,int t){ queueque; memset(pre,-1,sizeof(pre)); memset(vis,false,sizeof(vis... 阅读全文
posted @ 2013-11-05 20:39 Fray 阅读(177) 评论(0) 推荐(0) 编辑

2013年7月17日

摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=26399#overview果断开小号水过CodeForces 58A#include#include#includeusing namespace std;char a[]="hello";char s[1000];int main(){ while(cin>>s) { int k=0; for(int i=0;i#include#include#includeusing namespace std;int main(){ int n; ... 阅读全文
posted @ 2013-07-17 21:19 Fray 阅读(279) 评论(0) 推荐(0) 编辑

2013年7月16日

摘要: 题目链接http://codeforces.com/contest/325/problem/B第一遍写了暴搜,果断TLE然后上了二分,结果120组数据只有第40组过不了,我就写了奇怪的东西。。。。#include#include#include#include#includeusing namespace std;long long n;long long a,b;long long l,r;long long x;vectorV;int main(){ while(scanf("%I64d",&n)!=EOF) { if(n==250000001635857933 阅读全文
posted @ 2013-07-16 21:52 Fray 阅读(233) 评论(0) 推荐(0) 编辑

2013年7月15日

摘要: 参考:http://hi.baidu.com/yhxhqvnjombfpzq/item/5d93ef69ceb541176895e682 http://hi.baidu.com/lydrainbowcat/item/5fbae3fb9c159c5ec8f33753(看这篇文章有助于理解缩点过程中对于权的处理,非常清晰)想要自己写可是还是没有写出来,把这位同学的代码抄了一遍,终于弄懂了。。十分感谢。http://blog.sina.com.cn/s/blog_6af663940100ls4e.html#include#include#include#include#includeusing .. 阅读全文
posted @ 2013-07-15 09:55 Fray 阅读(318) 评论(0) 推荐(0) 编辑

2013年7月12日

摘要: 题目http://poj.org/problem?id=2728关键词:0/1分数规划,参数搜索,二分法,dinkelbach参考资料:http://hi.baidu.com/zzningxp/item/28aa46e0fd86bdc2bbf37d03 http://hi.baidu.com/zheng6822/item/b31fbe9d5ae17536336eeb8f#include#include#include#include#include#include#define N 1010#define INF 1e15#define eps 1e-10using namespa... 阅读全文
posted @ 2013-07-12 22:40 Fray 阅读(244) 评论(0) 推荐(0) 编辑

2013年5月18日

摘要: 这尼玛也能过。。。N^5了。。。。/*ID: aznfy1PROG: crypt1LANG: C++*/#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int num[9];int main(){ freopen("crypt1.in","r",stdin); freopen("crypt1.out","w",stdout); int n,a; while(cin>>n) 阅读全文
posted @ 2013-05-18 23:03 Fray 阅读(148) 评论(0) 推荐(0) 编辑
摘要: /*ID: aznfy1PROG: calfflacLANG: C++*/#include<stdio.h>#include<string.h>#include<iostream>#include<ctype.h>#include<math.h>using namespace std;char source[20001]={0};char cr[20001]={0};char line[81];int maxlen;int u,v;int maxu;int maxv;int main(){ freopen("calfflac 阅读全文
posted @ 2013-05-18 22:12 Fray 阅读(164) 评论(0) 推荐(0) 编辑
摘要: /*ID: aznfy1PROG: barn1LANG: C++*/#include<stdio.h>#include<string.h>#include<algorithm>#include<iostream>using namespace std;int space[200];int length;int tmp1,tmp2;int tmp[400];int main(){ freopen("barn1.in","r",stdin); freopen("barn1.out",&quo 阅读全文
posted @ 2013-05-18 22:03 Fray 阅读(211) 评论(0) 推荐(0) 编辑
摘要: /*ID: aznfy1PROG: milkLANG: C++*/#include<stdio.h>#include<string.h>#include<iostream>#include<algorithm>#define clr(a,b); memset(a,b,sizeof(a));using namespace std;struct node{ int price; int have;}a[6000];int need;int n;int money;bool cmp(const node& a,const node& b 阅读全文
posted @ 2013-05-18 22:02 Fray 阅读(146) 评论(0) 推荐(0) 编辑

导航