随笔分类 -  AIZU

摘要:Merry ChristmasTime Limit : 8 sec, Memory Limit : 65536 KBProblem J:Merry ChristmasInternational Christmas Present Company (ICPC) is a company to employ Santa and deliver presents on Christmas. Many parents request ICPC to deliver presents to their children at specified time of December 24. Although 阅读全文
posted @ 2014-03-18 22:33 hyx1 阅读(249) 评论(0) 推荐(0)
摘要: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 阅读(198) 评论(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 阅读(219) 评论(0) 推荐(0)