摘要: Buffalo Bill wishes to cross a 1000x1000 square field. A number of snakes are on the field at various positions, and each snake can strike a particula 阅读全文
posted @ 2017-02-07 14:35 DGSX 阅读(352) 评论(0) 推荐(0) 编辑
摘要: World Wide Flyer has landing rights at several airports throughout the world. They wish to place their central hub at the airport that minimizes the m 阅读全文
posted @ 2017-02-04 19:22 DGSX 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Accounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual report for MS Inc. All what they 阅读全文
posted @ 2017-02-04 18:04 DGSX 阅读(171) 评论(0) 推荐(0) 编辑
摘要: A large field has a dog and a gopher. The dog wants to eat the gopher, while the gopher wants to run to safety through one of several gopher holes dug 阅读全文
posted @ 2017-02-02 11:27 DGSX 阅读(187) 评论(0) 推荐(0) 编辑
摘要: You have a drawer that is full of two kinds of socks: red and black. You know that there are at least 2 socks, and not more than 50000. However, you d 阅读全文
posted @ 2017-02-01 11:59 DGSX 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 求最大公约数,用欧几里得算法(辗转相除法)。 阅读全文
posted @ 2017-02-01 11:05 DGSX 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Canada has a multi-party system of government. Each candidate is generally associated with a party, and the party whose candidates win the most riding 阅读全文
posted @ 2017-01-31 22:41 DGSX 阅读(267) 评论(0) 推荐(0) 编辑
摘要: You have been hired by several clients of a factory that manufactures brass bricks. Brass is an alloy of copper and zinc; each brick weighs 1000 grams 阅读全文
posted @ 2017-01-31 13:27 DGSX 阅读(261) 评论(0) 推荐(0) 编辑
摘要: In a billiard table with horizontal side a inches and vertical side b inches, a ball is launched from the middle of the table. After s > 0 seconds the 阅读全文
posted @ 2017-01-30 14:50 DGSX 阅读(116) 评论(0) 推荐(0) 编辑
摘要: There is a group of n (1 ≤ n ≤ 100) bakers in the town of Utopia. These bakers hold a monthly celebration in which they award a prize to some of the l 阅读全文
posted @ 2017-01-30 13:52 DGSX 阅读(190) 评论(0) 推荐(0) 编辑