原创 Codeforces Round #321 (Div. 2)C. Kefa and Park

C. Kefa and Park time limit per test 2 seconds memory limit per test 256 megabytes input standard input output

原创 BIT2014級軟件學院程序設計-07 Crossing River

Description A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Th

原创 BIT2014級軟件學院程序設計-05 修剪草坪

Description 有一個n*m的草坪(1<=n,m<=100),草坪中的草原來的高度都是100。現在使用割草機修剪草坪,來得到各種各樣的圖案。割草機只 能橫着或者豎着割草。每次割草都會先設定一個高度,割完之後會把比設定高度高的草都割

原创 POJ 2823 Sliding Window(單調隊列)

A - Sliding Window Time Limit:12000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Prac

原创 BIT2014級軟件學院程序設計-02進制轉換

02進制轉換 寫一段程序完成二進制、八進制、十進制、十六進制之間的轉換。 16進制10-15用ABCDEF表示 輸入 三個數值:起始進制,轉換後的進制,需要被轉換的數。 輸出 轉換之後的數。   例如: 輸入10

原创 HDU 5037 Frogs(數論)

Frogs Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 802   

原创 BIT2014級軟件學院程序設計-03 Flip Game

Description Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. On

原创 BIT2014級軟件學院程序設計-06貪婪的你

Description   現在大家正在爲完成網絡教室的題目而奮鬥。你想獲得更高的分數,但發現自己的效率有點兒低,於是請你寫個程序計算一下:   假設一共有 n 個題目,每個題目 i 你都需要一個單位時間來完成。同時每個題目 i 都有一個

原创 BIT2014級軟件學院程序設計-01球體問題

01球體問題 在一部電影中,有一些來自太空的圓球,能使人的噩夢轉化爲現實。打個比方來說,如果你夢見你正被獅子襲擊,那麼在現實中你周圍的人將會遭到獅子襲擊。 現 在問題是送圓球來的外星人正在地球上,他們居住在自己建造的小島上,小島的四

原创 POJ 1001Exponentiation

Exponentiation Time Limit: 500MS   Memory Limit: 10000K Total Submissions: 149182   Accepted: 36419 Description Pro

原创 BIT2014級軟件學院程序設計-04合併果子

在一個果園裏,多多已經將所有的果子打了下來,而且按果子的不同種類分成了不同的堆。多多決定把所有的果子合成一堆。 每一次合併,多多可以把兩堆果子合併到一起,消耗的體力等於兩堆果子的重量之和。可以看出,所有的果子經過n-1次合併之後,就只

原创 Codeforces Round #294 (Div. 2)-E. A and B and Lecture Rooms

E. A and B and Lecture Rooms time limit per test 2 seconds memory limit per test 256 megabytes input standard in

原创 HDU 5080 Colorful Toy (polya定理)

Colorful Toy Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(

原创 HDU 5532 Almost Sorted Array

Almost Sorted Array Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submi

原创 Codeforces-Gadget Hackwrench-LCA最近公共祖先

題目鏈接:http://codeforces.com/gym/100685/problem/G Gadget Hackwrench time limit per test 2 seconds memory limit per