原创 ZOJ 3675 Trim the Nails(bfs+狀態壓縮搜索)

Trim the Nails Time Limit: 2 Seconds      Memory Limit: 65536 KB Robert is clipping his fingernails. But the nail cli

原创 poj1178 Camelot(floyd+枚舉)

Camelot Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 2558   Accepted: 1190 Description Centuries ago,

原创 Codeforece#219(DIV2) C題

C. Counting Kangaroos is Fun time limit per test 1 second memory limit per test 256 megabytes input standard input

原创 用位運算來處理集合中的交,並,補(對稱差)運算

/* @author : liuwen */ #include <iostream> #include <cstdio> #include <cstring> #include <climits> //INT_MAX INT_M

原创 第四屆(2013年十月)福建省大學生程序設計競賽

G - Easy Game 題目鏈接 題意:輸入一個字符串,判斷該字符串長度的奇偶性。相當簡單。 /** author:liuwen */ #include <iostream> #include <cstring> #includ

原创 poj1529Shipping Routes(floyd)

其中leg理解爲路(雙向)即可。翻譯鏈接 描述: The Slow Boat to China Shipping company needs a program to help them quickly quote costs to pr

原创 poj1484||zoj1195 Blowing Fuses (模擬)

Description Maybe you are familiar with the following situation. You have plugged in a lot of electrical devices, such

原创 poj1106 Transmitters (枚舉+叉積運用)

Transmitters Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 4328   Accepted: 2295 Description In a wire

原创 poj1125 POJ 1125 Stockbroker Grapevine(兩種方法Dijkstra或者floyd)

Stockbroker Grapevine Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 24440   Accepted: 13443 Descriptio

原创 13年12月校賽總結

今天打了一場校賽,也是期末之前最後一場校賽(其實一共也沒舉行過幾場)。在和小夥伴一起努力的情況下,結果是相當的意外(第幾就不說了)。不過從比賽中還是暴露了很多的問題。 第一:題目沒有分析透徹就開始搞題,具體就是在F題的那個進制轉化上,本來

原创 poj1062 昂貴的聘禮(Dijkstra+枚舉等級處理)

昂貴的聘禮 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 33464   Accepted: 9533 Description 年輕的探險家來到了一個印第安部

原创 poj2197||zoj2406 Jill's Tour Paths(回溯+優先隊列)

                                                                                                                       

原创 poj 1237(歐拉回路+floyd)

                                                The Postal Worker Rings Once Time Limit: 1000MS   Memory Limit: 10000K

原创 poj 1130 Alien Security (dfs+bfs)

                                                                                                                       

原创 codeforces #221(div2)B. I.O.U.

B. I.O.U. time limit per test 1 second memory limit per test 256 megabytes input standard input output standard