原创 -----揹包 DP hdu 5119- Happy Matt Friends

Matt has N friends. They are playing a game together. Each of Matt’s friends has a magic number. In the game, Matt

原创 ----- UVA 11624-Fire!

Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected

原创 Vim編輯器常用指令

 - 基本模式 命令模式:所有按鍵都代表命令 插入模式:輸入的東西都成爲文件的內容 vim + 文件名: 打開後光標定位到最後一行 vim +3 文件名: 打開後光標定位到第三行 vim +/imooc 文件名: 定位到imooc出現的第

原创 -----找規律 ZOJ 3829-Known Notation

Do you know reverse Polish notation (RPN)? It is a known notation in the area of mathematics and computer science.

原创 -----FZU 2150-Fire Game

Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginn

原创 -----尺取法 hdu 6103-Kirinriki

Problem Description We define the distance of two strings A and B with same length n is disA,B=∑i=0n−1|Ai−Bn−1−i|

原创 -----概率DP ZOJ 3822- Domination

Edward is the headmaster of Marjar University. He is enthusiastic about chess and often plays chess with his friend

原创 Http&Https

Http&Https 什麼是協議? 計算機之間爲了實現網絡通信而達成的一種“約定”或者“規則”。 HTTP協議是什麼? 超文本傳輸協議,它是從WEB服務器傳輸超文本標記語言(HTML)到本地瀏覽器的傳送協議。HTPP有多個版

原创 密碼安全性

## 讀書筆記之 <<密碼安全性>>   ### 什麼是密碼哈希? - 哈希算法: 將任何數量的數據轉換爲無法反轉的固定長度的“指紋”(即使輸入的變化很小,但生成的哈希值將完全不同)。   用於實現諸如哈希表之類的數據結構的哈希函數被設計

原创 -----暴力dfs+回溯 hdu 1045-Fire Net

Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n colum

原创 -----染色問題 hdu 5971-Wrestling Match

Nowadays, at least one wrestling match is held every year in our country. There are a lot of people in the game is

原创 -----區間DP 石子的合併

石子合併 時間限制:1000 ms | 內存限制:65535 KB 難度:3 描述 有N堆石子排成一排,每堆石子有一定的數量。現要將N堆石子併成爲一堆。合併的過程只能每次將相鄰的兩堆石子堆成一堆,每次合併花費的代

原创 ------區間DP hdu 5115 - Dire Wolf

Dire wolves, also known as Dark wolves, are extraordinarily large and powerful wolves. Many, if not all, Dire Wolve

原创 -----dfs+思維 hdu 6060-RXD and dividing

http://acm.hdu.edu.cn/showproblem.php?pid=6060 傳送門 題目大意: 有一棵樹T,n個點,n-1條邊;將2,3,4,5,6,… n分到k個集合裏面S1,S2,S3,… Sk;集合可以是

原创 -----廣搜 POJ 3278-Catch That Cow

Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a