原创 HDU1686(Oulipo)

Oulipo Problem Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without t

原创 HDU1358(Period)

Period Problem Description For each prefix of a given string S with N characters (each character has an ASCII code

原创 HDU2203(親和串)

親和串 Problem Description 人隨着歲數的增長是越大越聰明還是越大越笨,這是一個值得全世界科學家思考的問題,同樣的問題Eddy也一直在思考,因爲他在很小的時候就知道親和串如何判斷了,但是發現,現在長大了卻不知道怎

原创 HDU1298(T9)

T9 Problem Description A while ago it was quite cumbersome to create a message for the Short Message Service (SMS)

原创 POJ1816(Wild Words)

Wild Words Description A word is a string of lowercases. A word pattern is a string of lowercases, '?'s and ‘'s. In

原创 HDU1247(Hat’s Words)

Hat’s Words Problem Description A hat’s word is a word in the dictionary that is the concatenation of exactly two o

原创 HDU2087(剪花布條)

剪花布條 Problem Description 一塊花布條,裏面有些圖案,另有一塊直接可用的小飾條,裏面也有一些圖案。對於給定的花布條和小飾條,計算一下能從花布條中儘可能剪出幾塊小飾條來呢? Input 輸入中含有一些數據,分別

原创 HDU3764(Cyclic Nacklace)

Cyclic Nacklace Problem Description CC always becomes very depressed at the end of this month, he has checked his c

原创 HDU2594(Simpsons’ Hidden Talents)

Simpsons’ Hidden Talents Problem Description Homer: Marge, I just figured out a way to discover some of the talents

原创 POJ2752(Seek the Name, Seek the Fame)

Seek the Name, Seek the Fame Description The little cat is so famous, that many couples tramp over hill and dale to

原创 HDU5858(Hard problem)

Hard problem Problem Description cjj is fun with math problem. One day he found a Olympic Mathematics problem for p

原创 HDU1711(Number Sequence)

Number Sequence Problem Description Given two sequences of numbers : a[1], a[2], … , a[N], and b[1], b[2], … , b[M]

原创 HDU5721(Palace)

題目傳送門 Problem Description The last trial Venus imposes on Psyche is a quest to the underworld. She is to take a box

原创 HDU3062(Party)

Party 題目傳送門 Problem Description 有n對夫妻被邀請參加一個聚會,因爲場地的問題,每對夫妻中只有1人可以列席。在2n 個人中,某些人之間有着很大的矛盾(當然夫妻之間是沒有矛盾的),有矛盾的2個人是不會同

原创 HDU1072(Nightmare)

Nightmare 題目傳送門 Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a tim