2013年3月9日

UVA10382 - Watering

摘要: Problem EWatering GrassInput:standard inputOutput:standard outputTime Limit:3 secondsnsprinklers are installed in a horizontal strip of grasslmeters long andwmeters wide. Each sprinkler is installed at the horizontal center line of the strip. For each sprinkler we are given its position as the dista 阅读全文

posted @ 2013-03-09 19:07 仗剑奔走天涯 阅读(254) 评论(0) 推荐(0) 编辑

UVA1388 - Graveyard

摘要: GraveyardProgramming contests became so popular in the year 2397 that the governor of New Earck -- the largest human-inhabited planet of the galaxy -- opened a special Alley of Contestant Memories (ACM) at the local graveyard. The ACM encircles a green park, and holds the holographic statues of famo 阅读全文

posted @ 2013-03-09 15:07 仗剑奔走天涯 阅读(468) 评论(0) 推荐(0) 编辑

USACO3.3.4--Home on the Range

摘要: Home on the RangeFarmer John grazes his cows on a large, square field N (2 <= N <= 250) miles on a side (because, for some reason, his cows will only graze on precisely square land segments). Regrettably, the cows have ravaged some of the land (always in 1 mile square increments). FJ needs to 阅读全文

posted @ 2013-03-09 02:32 仗剑奔走天涯 阅读(215) 评论(0) 推荐(0) 编辑

导航