原创 acer v5 573g 黑蘋果clover

Yosemite Install(14B25).cdr: http://pan.baidu.com/s/1bn9BM4R clover EFI http://pan.baidu.com/s/1i9yge

原创 計蒜課-統計三角形

給N根不同長度的木棍,求這些木棍一共能拼出多少個不同的不等邊三角形。注意在拼三角形的時候一定要用上所有的N根木棍。不同的定義是至少有一條邊的長度不相同;不等邊的定義是三條邊都不相等。 輸入格式: 第一行爲數據組數T,(1<=T<=

原创 hdu 3529 炸彈人

你還記得小霸王遊戲機上的炸彈人嗎?用放置炸彈的方法來消滅敵人。必須將畫面上的敵人全部消滅。必須畫面上的敵人全部消滅後,並找到隱藏的牆裏面的暗門才能過關。 現在有一個特殊的關卡你只有一枚炸彈,但是這枚炸彈威力超強(殺傷距離超長

原创 Uva524 Primer Ring Problem

Description A ring is composed of n (even number) circles as shown in diagram. Put natural numbers $1, 2,……, into

原创 HDU1276:士兵隊列訓練

Description 某部隊進行新兵隊列訓練,將新兵從一開始按順序依次編號,並排成一行橫隊,訓練的規則如下:從頭開始一至二報數,凡報到二的出列,剩下的向小序號方向靠攏,再從頭開始進行一至三報數,凡報到三的出列,剩下的向小序號方

原创 UVA 725 Division

Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 o

原创 NOIP2008 火柴棒等式

【問題描述】 給你n根火柴棒,你可以拼出多少個形如“A+B=C”的等式?等式中的A、B、C是用火柴棒拼出的整數(若該數非零,則最高位不能是0)。用火柴棒拼數字0–9的拼法如圖所示: 注意 加號與等號各自需要2根火柴棒 如果A

原创 啊哈,算法! -----dfs1

問題:輸入一個數n,輸出1~n的全排序。(利用深度搜索) 題解:假設每個n個盒子去存儲n個數字 代碼實現 #include<cstdio> #include<iostream> using namespace std; int

原创 HDU 5224 Tom and paper

Problem Description There is a piece of paper in front of Tom, its length and width are integer. Tom knows the area

原创 hdu 2524矩形A + B

Description 給你一個高爲n ,寬爲m列的網格,計算出這個網格中有多少個矩形,下圖爲高爲2,寬爲4的網格. Input 第一行輸入一個t, 表示有t組數據,然後每行輸入n,m,分別表示網格的高和寬 ( n <

原创 POJ2299 Ultra-QuickSort

Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence

原创 UVa 714 Copying Books

Before the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-wri

原创 CodeForces 556A Case of the Zeros and Ones

Andrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zero

原创 啊哈,算法!-----dfs2

從1~9九個組成形如abc+def=ghi的式子 輸出式子的總數 代碼實現 #include<iostream> #include<cstdio> using namespace std; int a[10],book[10]

原创 單鏈表基本操作

//////////////////////////////////////////// //單鏈表的初始化,建立,插入,查找,刪除。// //Author:Wang Yong