摘要: Prime NumberTime Limit : 1 sec, Memory Limit : 65536 KB Japanese version is herePrime NumberWrite a program which reads an integer n and prints the number of prime numbers which are less than or equal to n. A prime number is a natural number which has exactly two distinct natural number divisors: 1 阅读全文
posted @ 2014-03-09 15:02 hyx1 阅读(190) 评论(0) 推荐(0) 编辑
摘要: GCD and LCMTime Limit : 1 sec, Memory Limit : 65536 KB Japanese version is hereGCD and LCMWrite a program which computes the greatest common divisor (GCD) and the least common multiple (LCM) of given a and b (0 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 typedef long long ll;... 阅读全文
posted @ 2014-03-09 14:53 hyx1 阅读(206) 评论(0) 推荐(0) 编辑
摘要: DNA LaboratoryTime Limit: 5000MSMemory Limit: 30000KTotal Submissions: 1425Accepted: 280DescriptionBackground Having started to build his own DNA lab just recently, the evil doctor Frankenstein is not quite up to date yet. He wants to extract his DNA, enhance it somewhat and clone himself. He has al 阅读全文
posted @ 2014-03-09 13:32 hyx1 阅读(582) 评论(0) 推荐(0) 编辑