流水依依

希望朋友们有个好的身体,开开心心工作与学习。

博客园 首页 新随笔 联系 订阅 管理

2014年2月16日 #

摘要: HDU 1166 敌兵布阵 (单点更新,区间求和)Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。中央情报局要研究敌人究竟演习什么战术,所以Tidy要随时向Derek汇报某一段连续的工兵营地一共有多少人,例如Derek问:“Tidy,马上汇报第3个营地到 阅读全文
posted @ 2014-02-16 22:28 流水依依 阅读(428) 评论(1) 推荐(0)

摘要: B. Fox and Minimal pathtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel wants to write a task for a programming contest. The task is: "You are given a simple undirected graph withnvertexes. Each its edge has unit length. You should ca 阅读全文
posted @ 2014-02-16 20:52 流水依依 阅读(252) 评论(0) 推荐(0)

摘要: A. Fox and Box Accumulationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel hasnboxes in her room. They have the same size and weight, but they might have different strength. Thei-th box can hold at mostxiboxes on its top (we'll callxi 阅读全文
posted @ 2014-02-16 14:50 流水依依 阅读(202) 评论(0) 推荐(0)