Cubic Eight-PuzzleTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 1301 Accepted: 434DescriptionLet’s play a puzzle using eight cubes placed on a 3 × 3 board leaving one empty square.Faces of cubes are painted with three colors. As a puzzle
此題不能直接用費用流,會TLE,因為只要輸出比方案好的解即可,所以進行一次消圈就可以了Evacuation PlanTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2401 Accepted: 616 Special JudgeDescriptionThe City has a number of municipal buildings and a number of fallout shelters that were
LianLianKanTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1778 Accepted Submission(s): 558Problem DescriptionI like playing game with my friend, although sometimes looks pretty naive. Today
題目地址:http://www.spoj.com/problems/SUBST1/題目意思和解題思路都和SPOJ694一樣,只是範圍更大但是我們採用的演算法無壓力,直接碾壓過。詳見:http://blog.csdn.net/dr5459/article/details/9051149代碼:#include<cstdio>#include<cstring>#include<algorithm>using namespace std;const int maxn
LCISTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2988 Accepted Submission(s): 1307Problem DescriptionGiven n integers.You have two operations:U A B: replace the Ath number by B. (index
Seek the Name, Seek the FameTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9895 Accepted: 4748DescriptionThe little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their