摘要: Pseudoprime numbersTime Limit:1000MSMemory Limit:65536KTotal Submissions:7000Accepted:2855DescriptionFermat's theorem states that for any prime number... 阅读全文
posted @ 2015-02-23 08:51 Deribs4 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Prime CutsTime Limit:1000MSMemory Limit:10000KTotal Submissions:10610Accepted:4046DescriptionA prime number is a counting number (1, 2, 3, ...) that i... 阅读全文
posted @ 2015-02-23 07:49 Deribs4 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Prime Gap 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define max 10000010 int prime[max+5];... 阅读全文
posted @ 2015-02-22 22:18 Deribs4 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Goldbach's ConjectureTime Limit:1000MSMemory Limit:65536KTotal Submissions:39353Accepted:15077DescriptionIn 1742, Christian Goldbach, a German amateur... 阅读全文
posted @ 2015-02-22 20:09 Deribs4 阅读(243) 评论(0) 推荐(0) 编辑
摘要: C LooooopsTime Limit:1000MSMemory Limit:65536KTotal Submissions:18799Accepted:4924DescriptionA Compiler Mystery: We are given a C-language style for l... 阅读全文
posted @ 2015-02-22 17:32 Deribs4 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Raising Modulo NumbersTime Limit:1000MSMemory Limit:30000KTotal Submissions:4987Accepted:2887DescriptionPeople are different. Some secretly read magaz... 阅读全文
posted @ 2015-02-21 13:40 Deribs4 阅读(146) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-02-21 10:53 Deribs4 阅读(7) 评论(0) 推荐(0) 编辑
摘要: IntersectionTime Limit:1000MSMemory Limit:10000KTotal Submissions:12162Accepted:3157DescriptionYou are to write a program that has to decide whether a... 阅读全文
posted @ 2015-02-17 07:27 Deribs4 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Speed LimitTime Limit:1000MSMemory Limit:30000KTotal Submissions:17704Accepted:12435DescriptionBill and Ted are taking a road trip. But the odometer i... 阅读全文
posted @ 2015-02-16 13:57 Deribs4 阅读(179) 评论(0) 推荐(0) 编辑
摘要: IP AddressTime Limit:1000MSMemory Limit:30000KTotal Submissions:18951Accepted:10939DescriptionSuppose you are reading byte streams from any device, re... 阅读全文
posted @ 2015-02-16 13:42 Deribs4 阅读(161) 评论(0) 推荐(0) 编辑