原创 poj 3984 迷宮問題(bfs+路徑記錄)

定義一個二維數組: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0,

原创 poj 3414 Pots(bfs+輸出回溯路徑)

給你兩個容器,分別能裝下A升水和B升水,並且可以進行以下操作 FILL(i) 將第i個容器從水龍頭裏裝滿(1 ≤ i ≤ 2); DROP(i) 將第i個容器抽乾 POUR

原创 hdu1846 Brave Game(巴什博弈 模板題)

十年前讀大學的時候,中國每年都要從國外引進一些電影大片,其中有一部電影就叫《勇敢者的遊戲》(英文名稱:Zathura),一直到現在,我依然對於電影中的部分電腦特技印象深刻。 今天,大家選擇上機考試,就是一種勇敢(brav

原创 hdu 3032 Nim or not Nim?(博弈 SG)

Nim is a two-player mathematic game of strategy in which players take turns removing objects from distinct heaps. O

原创 hdu 1495 非常可樂(bfs)

大家一定覺的運動以後喝可樂是一件很愜意的事情,但是seeyou卻不這麼認爲。因爲每次當seeyou買了可樂以後,阿牛就要求和seeyou一起分享這一瓶可樂,而且一定要喝的和seeyou一樣多。但seeyou的手中只有兩個杯子,它們

原创 小渣渣歸來了qwq

    離上一次寫博客時間已經過去一年多了,這期間過得渾渾噩噩,昏昏沉沉。大一下時整個人精神狀態極差,到了直接崩潰的程度,經過一年的調整,現在已經回覆了平靜,但對學習也略顯放棄。   前兩天無意知道同學也在寫博客,興起一時打開了自

原创 csdn實現首行縮進及字體修改

、、之前首行縮進只需要在需要縮進的地方點兩個頓號就可以,經過嘗試,發現不行了,那我們該如何解決? 1.非第一段的話可以直接選擇將輸入法變成全角,右鍵輸入法–點擊全半角–將圖案由月牙形變成太陽形–然後在段落前點擊空格,就會出現首行縮

原创 hdu 1564 Play a game(博弈 找規律)

New Year is Coming! ailyanlu is very happy today! and he is playing a chessboard game with 8600. The size

原创 poj 3278 Catch That Cow(bfs)

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

原创 博弈專題練習

ACM博弈知識總結 hdu 1079 Calendar Game hdu 1564 Play a game hdu 1525 Euclid’s Game hdu 1874 Good Luck in CET-4 Everybody!

原创 poj 3126 Prime Path(bfs + 判素)

The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all

原创 hdu 1525 Euclid's Game(博弈 找規律)

Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positiv

原创 poj 3087 Shuffle'm Up(dfs 模擬)

A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by

原创 hdu 6299 Balanced Sequence(模擬棧, 貪心)

Chiaki has n strings s1,s2,…,sn consisting of ‘(’ and ‘)’. A string of this type is said to be balanced: if it is

原创 poj 1426 Find The Multiple(dfs)

Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation cont