原创 HDU 5115 Dire Wolf (區間DP)
Dire Wolf Time Limit: 5000/5000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others) Total Submission(s): 3
原创 POJ 1979 Red and Black 基礎性的DFS
Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is
原创 HDU 5317(2015多校第三場1002)
RGCDQ Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1320
原创 ZOJ 3818 The Himalayas (2014 ACM/ICPC 牡丹江站 網絡預選賽 J 題)
Pretty Poem Time Limit: 2 Seconds Memory Limit: 65536 KB Poetry is a form of literature that uses aesthetic and
原创 POJ 1163 The Triangle 動態規劃(由下至上+由上至下)雙解
題目: The Triangle Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 36792 Accepted: 22034 Description
原创 青蛙的煩惱 題解
青蛙的煩惱 Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other) Total Submission(s) : 7 Acc
原创 ZOJ 3809 The Himalayas (2014 ACM/ICPC 牡丹江站 網絡預選賽 A 題)
原題鏈接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3809 題目大意: 簽到題。 給你 T 組測試數據,每組數據第一個數爲 N 代表數的個數。後接
原创 2014年上海賽區現場賽 I 題 Defeat the Enemy
題目鏈接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=5158 現在想想,
原创 POJ 1011 Sticks 【深搜+剪枝】
原題鏈接: http://poj.org/problem?id=1011 基本題意:有n根棍子,其可以拼成多根長度相同的棍子。求滿足上述條件下能拼成的長度最短的棍子的長度。 大概思路:深搜+剪枝; 剪枝: 1.拼成的目標棍子長度必
原创 Codeforces Round #257 (Div. 2) B. Jzzhu and Sequences
B. Jzzhu and Sequences time limit per test 1 second memory limit per test 256 megabytes input standard inpu
原创 CODE [VS] 1009 產生數 (用Floyd算法求解傳遞閉包)
題目鏈接:http://codevs.cn/problem/1009/ 問題分析:很明顯,掃描一遍字符串,遇到可以變換的數字,將這個可以變換的數字的所有可能情況的數目乘起來便是我們要的答案。現在的問題便是如何求解單個數字的所有可能情況。
原创 Torando源碼解析之XSRF防護的實現
Torando源碼解析之XSRF防護的實現 Torando源碼解析之XSRF防護的實現 Tornado開啓XSRF防護的方法 源碼解析 xsrf_form_html()是什麼 self.xsrf_token是什麼 Torn
原创 Codeforces Round #344 (Div. 2) B 題題解 (暴力)
B. Print Check time limit per test 1 second memory limit per test 256 megabytes input standard input output st
原创 HDU 5335(2015 ACM多校訓練第四場1009)
Walk Out Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2469
原创 Codeforces Round #344 (Div. 2) A 題題解 (暴力)
A. Interview time limit per test 1 second memory limit per test 256 megabytes input standard input output