2013年2月24日

USACO3.2.1--Factorials

摘要: FactorialsThe factorial of an integer N, written N!, is the product of all the integers from 1 through N inclusive. The factorial quickly becomes very large: 13! is too large to store in a 32-bit integer on most computers, and 70! is too large for most floating-point variables. Your task is to find 阅读全文

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

USACO3.1.4--Shaping Regions

摘要: Shaping RegionsN opaque rectangles (1 <= N <= 1000) of various colors are placed on a white sheet of paper whose size is A wide by B long. The rectangles are put with their sides parallel to the sheet's borders. All rectangles fall within the borders of the sheet so that different figures 阅读全文

posted @ 2013-02-24 12:43 仗剑奔走天涯 阅读(268) 评论(0) 推荐(0) 编辑

导航