原创 Mathman Bank(第二屆ACM大學生程序設計競賽 )

Problem Description  With the development of mathmen's mathematics knowlege, they have finally invented computers. Ther

原创 Identifiers(第二屆ACM大學生程序設計競賽 )

Problem Description  Identifier is an important concept in the C programming language. Identifiers provide names for se

原创 Fruit Ninja II(山東省第三屆ACM大學生程序設計競賽 )

Problem Description   Have you ever played a popular game named "Fruit Ninja"? Fruit Ninja (known as Fruit Ninja HD o

原创 n a^o7 !(山東省第三屆ACM大學生程序設計競賽 )

Problem Description   All brave and intelligent fighters, next you will step into a distinctive battleground which is

原创 Invitation Cards(POJ-1511)

Description In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are

原创 Thrall’s Dream(山東省第四屆ACM大學生程序設計競賽 )

Problem Description We never paid any heed to the ancient prophecies, like fools we clung to the old hatreds, and foug

原创 興奮劑檢查(Vijos-1426)

背景 北京奧運會開幕了,這是中國人的驕傲和自豪,中國健兒在運動場上已經創造了一個又一個輝煌,super pig也不例外……………… 描述 雖然興奮劑是奧運會及其他重要比賽的禁藥,是禁止服用的。但是運動員爲了提高成績難免要服用一些,supe

原创 搭建雙塔(Vijos-1037)

描述 2001年9月11日,一場突發的災難將紐約世界貿易中心大廈夷爲平地,Mr. F曾親眼目睹了這次災難。爲了紀念“9?11”事件,Mr. F決定自己用水晶來搭建一座雙塔。 Mr. F有N塊水晶,每塊水晶有一個高度,他想用這N塊水晶搭建兩

原创 How Many Nines(ZOJ-3950)

If we represent a date in the format YYYY-MM-DD (for example, 2017-04-09), do you know how many 9s will appear in all t

原创 Contest Print Server(山東省第四屆ACM大學生程序設計競賽 )

Problem Description     In ACM/ICPC on-site contests ,3 students share 1 computer,so you can print your source code any

原创 Choose the best route(HDU-2680)

Problem Description One day , Kiki wants to visit one of her friends. As she is liable to carsickness , she wants to ar

原创 Full Binary Tree(山東省第五屆ACM大學生程序設計競賽 )

Problem Description In computer science, a binary tree is a tree data structure in which each node has at most two chi

原创 多人揹包(Vijos-1412)

描述 DD 和好朋友們要去爬山啦!他們一共有 K 個人,每個人都會背一個包。這些包的容量是相同的,都是 V。可以裝進揹包裏的一共有 N 種物品,每種物品都有給定的體積和價值。 在 DD 看來,合理的揹包安排方案是這樣的: 每個人揹包裏裝的

原创 Rescue The Princess(山東省第四屆ACM大學生程序設計競賽 )

Problem Description     Several days ago, a beast caught a beautiful princess and the princess was put in prison. To r

原创 Arbitrage(POJ-2240 && HDU-1217)

Description Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into m