[LeetCode]Edit Distance
題目 Given two words word1 and word2, find the minimum number of steps required t
[LeetCode]Distinct Subsequences
dp經典題 題目 Given a string S and a string T, count the number of distinct su
HDU 5175 Misaki's Kiss again (異或運算,公式變形)
Misakis Kiss again Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 655
1014. Waiting in Line (30)
Suppose a bank has N windows open for service. There is a yellow line in front o
Problem ACodeForces 148D 概率dp
題意:袋子裡有w只白鼠和b只黑鼠。龍和公主輪流從袋子裡抓老鼠。誰先抓到白色老師誰就贏。公主每次抓一只老鼠,龍每次抓完一只老鼠之後會有一只老鼠跑出來。每次抓老鼠和
[POJ]3277.City Horizon
Description Farmer John has taken his cows on a trip to the city! As the sun se