2012年2月13日
摘要: Prime PathTime Limit: 1000MSMemory Limit:65536KTotal Submissions: 6713Accepted:3808DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices. — It is a matter of security 阅读全文
posted @ 2012-02-13 09:05 bovine 阅读(163) 评论(0) 推荐(0) 编辑
摘要: PotsTime Limit: 1000MSMemory Limit:65536KTotal Submissions: 6087Accepted: 2563Special JudgeDescriptionYou are given two pots, having the volume of A and Bliters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) empty the pot ito the drain 阅读全文
posted @ 2012-02-13 09:03 bovine 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Find The MultipleTime Limit: 1000MSMemory Limit:10000KTotal Submissions: 10604Accepted: 4373Special JudgeDescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater th 阅读全文
posted @ 2012-02-13 09:01 bovine 阅读(152) 评论(0) 推荐(0) 编辑