HDU 4414 Finding crosses 暴力枚舉
題意:在#o組成的n*n(3<=n<=50)的圖中找到等長十字架長度至少為3,並且周圍一圈沒有#的十字架的個數。 題解:枚舉每一個#假設其為一
poj 1182 食物鏈(經典!種類並查集)
原題: Description 動物王國中有三類動物A,B,C,這三類動物的食物鏈構成了有趣的環形。A吃B, B吃C,C吃A。 現有N個動物,以1-N編號
poj 1703 Find them, Catch them(種類並查集)
題目: Find them, Catch them Time Limit: 1000MS Memory Limit: 10000K
poj 1733 Parity game(帶權並查集)
題目: Description Now and then you play the following game with your friend. Yo
HDU 3038 How Many Answers Are Wrong? (帶權並查集)
題目: Problem Description TT and FF are ... friends. Uh... very very good frien