原创 Scramble Sort

描述: In this problem you will be given a series of lists containing both words and numbers. The goal is to sort these

原创 Legal or Not

描述: ACM-DIY is a large QQ group where many excellent acmers get together. It is so harmonious that just like a big fami

原创 Mine Sweeper

描述: The game Minesweeper is played on an n by n grid. In this grid are hidden m mines, each at a distinct grid locatio

原创 求最大公約數和最小公倍數的常用解法

對於m,n兩數求最大公約數的算法: (1)輾轉相除法 1.c=m%n。 2.若c=0,則n就是兩數的最大公約數。 3.若c!=0,則m=n,n=c然後重新執行1。 代碼實現過程如下: #include<stdio.h> int sove(

原创 More is better

描述: Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the

原创 判斷多邊形凹凸(計算幾何基礎)

描述: 任意給定一個多邊形,判斷它是凸還是凹。多邊形的頂點以逆時針方向的序列來表示。 輸入: 輸入包含多組測試數據,每組數據佔2行,首先一行是一個整數n,表示多邊形頂點的個數,然後一行是2×n個整數,表示逆時針順序的n個頂點的座標(xi

原创 Surround the Trees(凸包)

描述: There are a lot of trees in an area. A peasant wants to buy a rope to surround all these trees. So at first he mu

原创 字符識別(字符串處理)

描述: 中南林業科技大學計算機與信息工程學院某位老師開發一個字符識別程序. 這個程序用來將紙質文檔轉換爲電子版. 很顯然, 這個轉換過程不能保證100%正確, 其中有些字符不能識別. 你的任務是寫一個程序幫助這位老師計算識別的效率. 識別

原创 A Walk Through the Forest(最短路徑+深搜)

描述: Jimmy experiences a lot of stress at work these days, especially since his accident made working difficult. To rela

原创 馬拉松比賽(深搜)

描述: 有一塊矩形的海域,其中有陸地也有海洋,這塊海域是CSUFT_ACM集訓隊的訓練基地,這一天,昌神說要集訓隊的隊員不能總是訓練,於是昌神提出了中南林ACM集訓隊第一場環陸馬拉松比賽,顧名思義就是圍繞着陸地的邊緣跑步。現在昌神給你

原创 Graph’s Cycle Component

描述: In graph theory, a cycle graph is an undirected graph that consists of a single cycle, or in other words, some numb

原创 Monthly Expense(二分)

描述: Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has

原创 Area in Triangle(計算幾何基礎)

描述: Given a triangle field and a rope of a certain length (Figure-1), you are required to use the rope to enclose a reg

原创 元素個數排序

描述: 給定若干行,每行若干個整數,請根據每行整數個數從小到大進行排序。 輸入: 輸入數據有若干行(不超過10行),處理到文件結尾(EOF結束)。每行若干個(至少1個,不超過20個)整數,整數之間由空格分隔,結尾沒有空格。 每行字

原创 URL(字符串)

描述: WHU ACM Team is working on a brand new web browser named "Whu-Super-Browser". You're in response for a powerful fea