雕刻时光

just do it……nothing impossible
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年11月23日

摘要: 貌似只要一次更新就行了我一开始暴力枚举更新,重复1100大循环貌似就会都符合所有的约束其实每次在区间【a,b】,【a+1,b-1】每个数减一就行了同时注意重复区间不要算在内。。。View Code #include<stdio.h>int s[10009];bool hash[10009][10009];int main(){ int n,th,max,m; while(scanf("%d%d%d%d",&n,&th,&max,&m)!=EOF) { int a,b,i,j; for(i=1;i<=n;i++) { ... 阅读全文

posted @ 2011-11-23 16:57 huhuuu 阅读(253) 评论(0) 推荐(0) 编辑