原创 算法競賽入門經典-書本例子-3-3-豎式計算
代碼: #include <iostream> #include <cmath> #include <ctime> #include <cstdio> #include <cstring> #include <fstream> usin
原创 算法競賽入門經典-課後練習-2-10-排列
代碼: #include <iostream> #include <cmath> #include <ctime> #include <cstdio> #include <fstream> using namespace std; i
原创 算法競賽入門經典-課後練習-3-1-2分數統計
#include <iostream> #include <cmath> #include <ctime> #include <cstdio> #include <cstring> #include <vector> #include
原创 UVa10815 - Andy's First Dictionary- 字符串(map的使用)-難度2
題目鏈接: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1756 Andy, 8, ha
原创 UVa401 - Palindromes-字符串(鏡像字符串)-難度2
題目鏈接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=342 Palindrome
原创 UVa10010 - Where's Waldorf?-字符串(8方向搜索)-難度3
題目鏈接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=951 Where's Wa
原创 UVa537 - Artificial Intelligence?-字符串(混合字符實數輸入)-難度3
題目鏈接: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=96&page=show_problem&problem=350
原创 HDU-1003 Max Sum-動態規劃-難度2
Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/3276
原创 LeetCode Reverse Words in a String Total
Reverse Words in a String Total Given an input string, reverse the string word by word. For example, Given s = "the sk
原创 深度優先搜索DFS( 遞歸+非遞歸)
參考算法導論第三版 p349 /* dfs搜索 - 鄰接表 */ #include <cstdio> #include <vector> #include <stack> using std::vector; using std::s
原创 UVa10115 - Automatic Editing- 字符串(子串替換)-難度2
題目鏈接: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=96&page=show_problem&problem=1056
原创 LeetCode Add Two Numbers
Add Two Numbers You are given two linked lists representing two non-negat
原创 OpenCV學習-第二章-視頻播放控制-支持滾動條隨着視頻播放自動移動
支持滾動條隨着視頻播放自動移動 /*第三個OpenCV程序*/ #include "opencv/cv.h" #include "opencv/highgui.h" int g_slider_position = 0; CvCaptur
原创 LeetCode Two Sum Total
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum sho
原创 UVa409 - Excuses, Excuses!-字符串-難度2
題目鏈接: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=350 代碼+思路 #inclu