CodeForces 520C DNA Alignment 題意: 一段DNA序列(10^5長度) 定義h函數為兩序列相同鹼基個數 p函數為分別移動兩個
BZOJ 2326 HNOI 2011 數學作業 矩陣乘法 題目大意 求一個這樣的數:“12345678910111213……”對m取模的值。 思路
[Leetcode]Single Number Given an array of integers, every element appears twic
LeetCode --- 46. Permutations 題目鏈接:Permutations Given a collection of numbers,
HDOJ題目2454 Degree Sequence of Graph G(判斷是否是簡單圖) Degree Sequence of Graph G Tim
hdu 1269 迷宮城堡(強連通 tarjan ) Problem Description 為了訓練小希的方向感,Gardon建立了一座大城堡,裡面有N
HDU 5024 Wang Xifeng's Little Plot (枚舉 + DFS記憶化搜索) Wang Xifengs Litt
Codeforces Round #294 (Div. 2) -- A. A and B and Chess A. A and B and Ch
Codeforces Round #294 (Div. 2) -- B. A and B and Compilation Errors B. A and
Codeforces Round #294 (Div. 2) -- C. A and B and Team Training C. A and B an
POJ2488 A Knight's Journey 騎士巡游 DFS Description Background The
Codeforces Round #294 (Div. 2) -- D. A and B and Interesting Substrings
1019. General Palindromic Number A number that will be the same when it is wr
[LeetCode]90.Subsets II 題目 Given a collection of integers that might contain
CodeForces 264A Escape from Stones dfs 題目鏈接:點擊打開鏈接 題意:開始有一個區間[0,1] 每次操作在中間填i,然