原创 1053. Path of Equal Weight

http://pat.zju.edu.cn/contests/pat-a-practise/1053 鏈表的操作,dfs遍歷 #include <stdio.h> #include <iostream> #include <vector>

原创 1051.Pop Sequence

http://pat.zju.edu.cn/contests/pat-a-practise/1051 #include <stdio.h> #include <string.h> #include <stack> using namesp

原创 hdu_1201:18歲生日

http://acm.hdu.edu.cn/showproblem.php?pid=1201 #include <stdio.h> int isyear(int x) { if ( (x%400==0)||(x%100!=0&&x%4

原创 hdu_1062:Text Reverse

http://acm.hdu.edu.cn/showproblem.php?pid=1062 #include<stdio.h> #include<string.h> int main() { int n,i,j,flag;

原创 題目1496:數列區間

http://ac.jobdu.com/problem.php?pid=1496 超時原因:                 正常模擬,極端情況下,第k+1次操作對第k次操作的數字實現了全覆蓋,則第k次操作對於最終結果全無意義 改善:逆向

原创 python random模塊

原文:http://blog.csdn.net/xiaocaiju/article/details/6973175 Python中的random模塊用於生成隨機數。下面介紹一下random模塊中最常用的幾個函數。 random.ran

原创 python_numpy

python 下numpy包下載地址:http://sourceforge.net/projects/numpy/files/NumPy/ 不同平臺:可以選擇win32或者linux(以.tar.gz爲後綴)。              

原创 zju2010:ZOJ問題

http://ac.jobdu.com/problem.php?pid=1006 2010年浙江大學計算機及軟件工程研究生機試真題 #include <stdio.h> char str[1005]; int main() { i

原创 九度題目1099:後綴子串排序

http://ac.jobdu.com/problem.php?pid=1099 2010年上海交通大學計算機研究生機試真題 1、每輪測試都要清空容器 2、substr的使用 #include <iostream> #include <a