摘要: "学习dalao的blog" flag++ cpp void insert(long long x){ for(int i=60;~i;i ){ if(x&(1llx)x^=base[i]; } return x; } long long query_min(long long x){ for(in 阅读全文
posted @ 2018-07-02 19:41 SWHsz 阅读(158) 评论(0) 推荐(0) 编辑
摘要: flag++ cpp //Writer : Hsz %WJMZBMR%tourist%hzwer include include include define LL long long define M(a,b) memset(a,b,sizeof a) const int inf=0x3fffff 阅读全文
posted @ 2018-07-02 15:36 SWHsz 阅读(114) 评论(0) 推荐(0) 编辑
摘要: "[HNOI2013]游走" 晚上回去写 flag++; cpp include include include const int N = 505;const double eps=1e 8; int n,m,ecnt,head[N],d[N],S[N N],T[N N]; double f[N] 阅读全文
posted @ 2018-07-02 15:28 SWHsz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: "[Noi2002]Savage" 数学题。 题解回去写(有个坑点) flag++ cpp include int n,m,c[25],p[29],l[29]; int exgcd(int a,int b,int &x,int &y){ if(!b){x=1,y=0;return a;} int a 阅读全文
posted @ 2018-07-02 10:57 SWHsz 阅读(119) 评论(0) 推荐(0) 编辑
摘要: "[SDOI2010]古代猪文" 一道数学题。 题解回去补 flag++ cpp include include long long n,g; long long prime[4]= {2,3,4679,35617}; const long long mod=999911659; int x[4]; 阅读全文
posted @ 2018-07-02 10:28 SWHsz 阅读(139) 评论(0) 推荐(0) 编辑