poj3239 Solution to the n Queens Puzzle (n皇後問題)
poj3239 Solution to the n Queens Puzzle (n皇後問題) Solution to the n Queens Puz
[LeetCode]58.Length of Last Word
[LeetCode]58.Length of Last Word 題目 Given a string s consists of upper/lower-
UVa 116 Unidirectional TSP(DP)
UVa 116 Unidirectional TSP(DP) 題意 一個n*m的環形矩陣(第一行和最後一行是相鄰的) 從第一列任意位置出發 只能往右上
LA 6531 Go up the Ultras 單調棧+RMQ
LA 6531 Go up the Ultras 單調棧+RMQ 題意:已經懶得吐槽了。。有N個山峰,(N<=10^5),每個山峰有高度h,對應著每個山峰有
poj2948--Martian Mining(dp)
poj2948--Martian Mining(dp) Martian Mining Time Limit: 5000MS Memory Lim
Codeforces 509C. Sums of Digits 貪心枚舉
Codeforces 509C. Sums of Digits 貪心枚舉 貪心枚舉,代碼裡的注釋很詳細 C. Sums of Digit
poj1047 Round and Round We Go
poj1047 Round and Round We Go Round and Round We Go Time Limit: 1000MS
HDOJ 2024 C語言合法標識符(水題,講講標識符)
HDOJ 2024 C語言合法標識符(水題,講講標識符) C語言合法標識符 Time Limit: 2000/1000 MS (Java/Others)
Leetcode:Add Two Numbers
Leetcode:Add Two Numbers You are given two linked lists representing two non-
leetcode:Palindrome Number
leetcode:Palindrome Number 一、 題目 試確定一個整數是否為回文數。並不使用額外的空間。 提示: 負整數可能是回文數嗎?(例如 -
POJ 3468 A Simple Problem with Integers 線段樹區間更新
POJ 3468 A Simple Problem with Integers 線段樹區間更新 點擊打開鏈接 A Simple Proble
hdu 1524 A Chess Game (SG)
hdu 1524 A Chess Game (SG) 題意:在一個有向無環圖上有n個頂點,每一個頂點都只有一個棋子,有兩個人,每次根據這個圖只能將任意一顆