2013年2月26日

USACO3.2.5--Magic Squares

摘要: Magic SquaresIOI'96Following the success of the magic cube, Mr. Rubik invented its planar version, called magic squares. This is a sheet composed of 8 equal-sized squares:12348765In this task we consider the version where each square has a different color. Colors are denoted by the first 8 posit 阅读全文

posted @ 2013-02-26 22:22 仗剑奔走天涯 阅读(273) 评论(0) 推荐(0) 编辑

USACO3.2.4--Feed Ratios

摘要: Feed Ratios1998 ACM Finals, Dan AdkinsFarmer John feeds his cows only the finest mixture of cow food, which has three components: Barley, Oats, and Wheat. While he knows the precise mixture of these easily mixable grains, he can not buy that mixture! He buys three other mixtures of the three grains 阅读全文

posted @ 2013-02-26 11:14 仗剑奔走天涯 阅读(218) 评论(0) 推荐(0) 编辑

导航