原创 hdu-1114 Piggy-Bank

Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtain

原创 hdu_1686 Oulipo

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

原创 C++用deque容器完成貪喫蛇

用deque記錄貪喫蛇的座標,並用pop_front和pusk_back完成貪喫蛇座標的變化。 #include<iostream> #includ

原创 hdu 1072 Nightmare

    Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him.

原创 hdu 2062 Bone Collector

Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man li

原创 hdu 1203 I NEED A OFFER!

Problem Description Speakless很早就想出國,現在他已經考完了所有需要的考試,準備了所有要準備的材料,於是,便需要去申請學校了。要申請國外的任何大學,你都要交納一定的申請費用,這可是很驚人的。Speakles

原创 C++用deque容器完成貪吃蛇

用deque記錄貪吃蛇的座標,並用pop_front和pusk_back完成貪吃蛇座標的變化。 #include<iostream> #include<cstdio> #include<Windows.h

原创 hdu_1166 敵兵佈陣

Problem Description C國的死對頭A國這段時間正在進行軍事演習,所以C國間諜頭子Derek和他手下Tidy又開始忙乎了。A國在海岸線沿直線佈置了N個工兵營地,Derek和Tidy的任務就是要監視這些工兵營地的活動情況

原创 hdu_1054 Strategic Game(動態規劃與二分圖兩種解法)

Problem Description Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the s

原创 hdu_2064 漢諾塔III

Problem Description 約19世紀末,在歐州的商店中出售一種智力玩具,在一塊銅板上有三根杆,最左邊的杆上自上而下、由小到大順序串着由64個圓盤構成的塔。目的是將最左邊杆上的盤全部移到右邊的杆上,條件是一次只能移動一個盤

原创 hdu 1072 Nightmare

    Problem Description Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him.

原创 hdu_2514 跳舞毯

Problem Description 由於長期缺乏運動,小黑髮現自己的身材臃腫了許多,於是他想健身,更準確地說是減肥。 小黑買來一塊圓形的毯子,把它們分成三等分,分別標上A,B,C,稱之爲“跳舞毯”,他的運動方式是每次都從A開始跳,