2011年10月30日

poj Mersenne Composite Numbers

摘要: Mersenne Composite NumbersTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 1494Accepted: 698DescriptionOne of the world-wide cooperative computing tasks is the "Grand Internet Mersenne Prime Search" -- GIMPS -- striving to find ever-larger prime numbers by examining a particular ca 阅读全文

posted @ 2011-10-30 20:52 Goal 阅读(252) 评论(0) 推荐(1) 编辑

hdu Discount

摘要: DiscountTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 57Accepted Submission(s): 47Problem DescriptionAll the shops use discount to attract customers, but some shops doesn’t give direct discount on their goods, instead, they give discount only whe 阅读全文

posted @ 2011-10-30 18:19 Goal 阅读(253) 评论(0) 推荐(0) 编辑

poj Pseudoprime numbers

摘要: Pseudoprime numbersTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 4496Accepted: 1716DescriptionFermat's theorem states that for any prime number p and for any integer a > 1, ap = a (mod p). That is, if we raise a to the pth power and divide by p, the remainder is a. Some (but not ve 阅读全文

posted @ 2011-10-30 12:27 Goal 阅读(213) 评论(0) 推荐(0) 编辑

导航