原创 HDU-3839-Ancient Messages(DFS)
Problem Description In order to understand early civilizations, archaeologists often study texts written in ancient lan
原创 HDU-2102-A計劃(BFS+優先隊列)
Problem Description 可憐的公主在一次次被魔王擄走一次次被騎士們救回來之後,而今,不幸的她再一次面臨生命的考驗。魔王已經發出消息說將在T時刻喫掉公主,因爲他聽信謠言說喫公主的肉也能長生不老。年邁的國王正是心急如焚,告招天
原创 HDU-1067-Gap(BFS+HASH)
Problem Description Let's play a card game called Gap. You have 28 cards labeled with two-digit numbers. The first dig
原创 HDU-4947-GCD Array(樹狀數組+莫比烏斯反演)
Problem Description Teacher Mai finds that many problems about arithmetic function can be reduced to the following pr
原创 HDU-3681-Prison Break(BFS+狀壓DP+二分)
Problem Description Rompire is a robot kingdom and a lot of robots live there peacefully. But one day, the king of Ro
原创 UESTC-888-Absurdistan Roads(kruskal+floyd)
The people of Absurdistan discovered how to build roads only last year. After the discovery, every city decided to
原创 CF-85D-Sum of Medians(線段樹)
In one well-known algorithm of finding the k-th order statistics we should divide all elements into groups of fi
原创 HDU-3533-Escape(BFS)
Problem Description The students of the HEU are maneuvering for their military training. The red army and the blue ar
原创 HDU-2437-Jerboas(BFS+優先隊列)
Problem Description Jerboas are small desert-living animals, which resemble mice with a long tufted tail and very
原创 HDU-4924-Football Manager(DFS+DP)
Problem Description Football Manager is a series of football management simulation games developed by Sports Interactiv
原创 HDU-4973-A simple simulation problem.(線段樹)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the
原创 HDU-3295-An interesting mobile game(BFS+DFS)
Problem Description XQ,one of the three Sailormoon girls,is usually playing mobile games on the class.Her favorite mobi
原创 HDU-2259-Continuous Same Game (2)(BFS+DFS+模擬)
Problem Description After repeated attempts, LL finds the greedy strategy is very awful in practice. Even there is no
原创 HDU-1685-Booksort(IDA*)
Problem Description The Leiden University Library has millions of books. When a student wants to borrow a certain book,
原创 HDU-4288-Coder(線段樹)
Problem Description In mathematics and computer science, an algorithm describes a set of procedures or instructions