HDU 1505 City Game(01矩陣 dp)
HDU 1505 City Game(01矩陣 dp) Problem Description Bob is a strategy game progra
ural 1707. Hypnotoad's Secret(線段樹)
ural 1707. Hypnotoad's Secret(線段樹) 題目鏈接:ural 1707. Hypnotoads Secret
URAL 1542. Autocompletion 字典樹
URAL 1542. Autocompletion 字典樹 給你最多10w個單詞和對應的頻率 接下來最多1w5千次詢問 每次輸入一個字符串讓你從前面的單詞中
UVA 10910 Marks Distribution(組合數學 或 遞推)
UVA 10910 Marks Distribution(組合數學 或 遞推) Marks Distribution Time limit: 3.0
Codeforces 85D Sum of Medians(線段樹)
Codeforces 85D Sum of Medians(線段樹) 85D Sum of Medians 題目鏈接 題意:一個集合有添加,刪除元素,
ZOJ 3826 Hierarchical Notation 模擬
ZOJ 3826 Hierarchical Notation 模擬 模擬: 文法分析 hash每個Key建圖,對每個節點記錄在原串的第幾個位置開始輸出。
hdu 4405 Aeroplane chess (概率DP+求期望)
hdu 4405 Aeroplane chess (概率DP+求期望) Time Limit: 2000/1000 MS (Java/Others)
BZOJ 2734 HNOI2012 集合選數 狀壓DP
BZOJ 2734 HNOI2012 集合選數 狀壓DP 題目大意:給定n,求集合S={1,2,3,...,n}有多少子集滿足對於任意集合中任意兩個數x和y
HDU 4027 Can you answer these queries?(線段樹)
HDU 4027 Can you answer these queries?(線段樹) HDU 4027 Can you answer these que
POJ 3602 Typographical Ligatures
POJ 3602 Typographical Ligatures 【題意簡述】:題意就是輸入一串字符串,問我們有多少種不同的字符,也就是說出現過一次的字符,
leetcode - Spiral Matrix II
leetcode - Spiral Matrix II Given an integer n, generate a square matrix fill
UVA10972 - RevolC FaeLoN(雙連通分量)
UVA10972 - RevolC FaeLoN(雙連通分量) 題目鏈接 題意: 給定一個無向圖,問最少添加多少條邊,使得這個圖成為連通圖 思路:
leetcode - Length of Last Word
leetcode - Length of Last Word Given a string s consists of upper/lower-case
BestCoder Round #13(前兩題)
BestCoder Round #13(前兩題) 這一次又只出了一題,第二題沒有分析好,竟然直接copy代碼,不過長見識了。。 第一題給了一些限制條件,自己