2014年7月22日

poj2528 线段树区间修改(加值)

摘要: 1 #include 2 #include 3 int addv[100005],minv[100005],fmin,y1,y2,v,l[20005],d[20005],len[20005]; 4 int min(int x,int y) 5 { 6 if (x=r) addv[o]+=v... 阅读全文

posted @ 2014-07-22 23:39 xiao_xin 阅读(114) 评论(0) 推荐(0) 编辑

hdu3306 矩阵快速幂

摘要: 1 #include 2 #include 3 #define MOD 10007 4 int main() 5 { 6 int n,x,y,i,j,k,doit[5][5],temp[5][5],a[5][2]; 7 while (~scanf("%d%d%d",&n,&x,&y... 阅读全文

posted @ 2014-07-22 16:10 xiao_xin 阅读(120) 评论(0) 推荐(0) 编辑

hdu1074 状态压缩dp

摘要: 1 #include 2 #include 3 char s[20][105]; 4 int ded[20],day[20],hash[40000]; 5 struct s 6 { 7 int time,pre,lost; 8 }dp[40000]; 9 void Print(int s... 阅读全文

posted @ 2014-07-22 14:17 xiao_xin 阅读(99) 评论(0) 推荐(0) 编辑

导航