- 博客(6)
- 资源 (5)
- 收藏
- 关注
原创 DP 练习 uva103 Stacking Boxs
题目链接https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=39#include #define MAX_K 31 #define MAX_N 11 int k; // number of box, k<=30 int n; //
2016-06-30 21:12:56 399
原创 使用pyhunspell检查多国语言词汇
import codecs import hunspell hun_dicts={ 0x0001:'ar', 0x0002:'bg_BG', 0x0005:'cs', 0x0006:'da_DK', 0x0007:'de_DE,de_AT,de_CH', 0x0008:'el', 0x0009:'en_CA,en_US,en_AU,en_ZA,en_GB', 0x000A:'es', 0x00
2016-06-30 09:09:57 840
原创 Install hunspell with python on Ubuntu
# install hunspell sudo apt-get install hunspell # install hunspell dict sudo apt-get install hunspell-ar myspell-bg myspell-cs hunspell-da hunspell-de-at hunspell-de-ch hunspell-de-de myspell-el-g
2016-06-30 09:04:55 1218
原创 DP算法- 循环取石子
// // 有N堆(N // // 状态转移方程dp[i][j] = min(dp[i][k]+[(i+k+1)%n][j-k-1]+sum[i][j]) // 把要合并的j堆分成前k堆和后j-k-1堆以及最后一堆i+j //input: //3 //4 //4 5 9 4 //6 //3 4 6 5 4 2 //10 //9 3 2 8 5 10 3 13 2 4
2016-06-26 15:46:56 481
原创 hdu1025 - LIS
// LIS // O(nlogn) #include #define MAX_N 500005 int n; // number of roads plan to build int road[MAX_N]; // road[p]=r, means a road from city p to city r, city start from 1 int dp[MAX_N]; // dp
2016-06-17 23:47:38 310
原创 HDU 4826-Labyrinth-DP
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=4826 /****************************************************************************** * Author: Tlight * URL: http://blog.csdn.net/tlight * Title : L
2016-06-11 09:21:37 393
Programming with GNU software 2
2014-01-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人