摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文