2012年5月12日

Area of a Parallelogram

摘要: http://acm.hust.edu.cn:8080/judge/contest/view.action?cid=8086#problem/HDescriptionA parallelogram is a quadrilateral with two pairs of parallel sides. See the picture below:Fig: a parallelogramNow you are given the co ordinates of A, B and C, you have to find the coordinates of D and the area of th 阅读全文

posted @ 2012-05-12 15:33 不悔梦归处 阅读(370) 评论(0) 推荐(0) 编辑

Harmonic Number

摘要: http://acm.hust.edu.cn:8080/judge/contest/view.action?cid=8086#problem/DD - Harmonic NumberDescriptionIn mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers:In this problem, you are given n, you have to find Hn.InputInput starts with an integer T (≤ 1000 阅读全文

posted @ 2012-05-12 15:30 不悔梦归处 阅读(770) 评论(0) 推荐(0) 编辑

False Ordering

摘要: http://acm.hust.edu.cn:8080/judge/contest/view.action?cid=8086#problem/AA - False OrderingDescriptionWe define b is a Divisor of a number a if a is divisible by b. So, the divisors of 12 are 1, 2, 3, 4, 6, 12. So, 12 has 6 divisors.Now you have to order all the integers from 1 to 1000. x will come b 阅读全文

posted @ 2012-05-12 15:27 不悔梦归处 阅读(233) 评论(0) 推荐(0) 编辑

导航