原创 HDU-2062 Subset sequence

Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of

原创 UVA-11827 Maximum GCD

Given the N integers, you have to find the maximum GCD (greatest common divisor) of every possible pair of these intege

原创 HDU-1260 Tickets

Jesus, what a great movie! Thousands of people are rushing to the cinema. However, this is really a tuff time for Joe w

原创 HDU-1212 Big Number

As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a

原创 HDU-2674 N!Again

WhereIsHeroFrom:             Zty, what are you doing ?  Zty:                                     I want to calculate N!

原创 HDU-1016 Prime Ring Problem

DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separat

原创 HDU - 2124 Repair The Wall (貪心水題)

DescriptionLong time ago , Kitty lived in a small village. The air was fresh and the scenery was very beautiful. The on

原创 HDU-1241 Oil Deposits(簡單DFS)

DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp w