摘要: 题目链接:http://contesthunter.org/contest/Beta%20Round%20%EF%BC%836%20(%E3%80%8C%E6%80%9D%E8%80%83%E7%86%8A%E3%80%8D%E6%9D%AF%20NOI%E6%A8%A1%E6%8B%9F%E8%B... 阅读全文
posted @ 2014-07-19 22:57 wangyucheng 阅读(170) 评论(0) 推荐(0) 编辑
摘要: /************************************************************** Problem: 2120 User: wangyucheng Language: C++ Result: Accepted Time:174... 阅读全文
posted @ 2014-07-16 22:56 wangyucheng 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 60000#define M 50000int mindiv[N];int zhi[N];int zhin;int u[N];void shai(int x){ for(i... 阅读全文
posted @ 2014-07-14 22:19 wangyucheng 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int n,m;#define N 32#define mod 10007LL#define mod2 10000007#define inf 0x3ffffffftypedef long lon... 阅读全文
posted @ 2014-07-07 16:50 wangyucheng 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 110000#define inf 0x3fffffffint n;int e[N],w[N],ne[N],v[N];int nn=0;void add(int x,int y... 阅读全文
posted @ 2014-07-04 11:55 wangyucheng 阅读(145) 评论(0) 推荐(0) 编辑
摘要: /************************************************************** Problem: 3203 User: wangyucheng Language: C++ Result: Accepted Time:344... 阅读全文
posted @ 2014-07-02 23:09 wangyucheng 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;typedef long long ll;ll n,p;ll k;#define N 4000000ll a[N],fr[N];struct sq{ ll a[3][3]; sq(){... 阅读全文
posted @ 2014-06-30 22:34 wangyucheng 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;#define N 510000struct P{ int x,y; P(int a=0,int b=0){x=a,y=b;} bool operator=k)retu... 阅读全文
posted @ 2014-06-26 22:26 wangyucheng 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 220000#define inf 0x3ffffffffffffffLLtypedef long long ll;int v[N],e[N],ne[N],nn,w[N];vo... 阅读全文
posted @ 2014-06-25 07:49 wangyucheng 阅读(429) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 110000int e[N],ne[N*2],v[N*2],w[N*2];typedef double dd;int nn;dd dp1[N];void add(int x,i... 阅读全文
posted @ 2014-06-21 19:29 wangyucheng 阅读(301) 评论(0) 推荐(0) 编辑