原创 hdu 5303 Delicious Apples(2015 Multi-University Training Contest 2)

Delicious Apples                                                                             Time Limit: 5000/3000 MS

原创 51nod 1391 01串(鍛鍊思維的好題)

   題目http://www.51nod.com/onlineJudge/questionCode.html#problemId=1391¬iceId=20917 1391 01串 題目來源: Codility 基準時間限

原创 hdu 5335 Walk Out (2015 Multi-University Training Contest 4)

Walk Out                                                                         Time Limit: 2000/1000 MS (Java/Others

原创 hdu 5414 CRB and String(2015 Multi-University Training Contest 10)

CRB and String                                                                      Time Limit: 2000/1000 MS (Java/Oth

原创 51nod 1287 加農炮(鍛鍊思維的好題)

題目:http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1287 一個長度爲M的正整數數組A,表示從左向右的地形高度。測試一種加農炮,炮彈平行於地面從左向

原创 hdu 5486 Difference of Clustering(合肥網賽)

Difference of Clustering                                                                                       Time Li

原创 zoj 3908 Number Game(zoj 2015年10月月賽F題)

Number Game Time Limit: 2 Seconds      Memory Limit: 65536 KB The bored Bob is playing a number game. In the beginning,

原创 578C. Weakness and Poorness(Codeforces Round #320)

C. Weakness and Poorness time limit per test 2 seconds memory limit per test 256 megabytes input standard i

原创 51nod 1394 差和問題(算法馬拉松8)

有一個集合S,初始狀態下有n個元素,對他進行如下操作: 1、向S裏面添加一個值爲v的元素。輸入格式爲1 v 2、向S裏面刪除一個值爲v的元素。輸入格式爲2 v 3、詢問S裏面的元素兩兩之差絕對值之和。輸入格式爲3   對於

原创 51nod 1276 島嶼的數量(鍛鍊思維的好題)

題目:http://www.51nod.com/onlineJudge/questionCode.html#problemId=1276¬iceId=21617 有N個島連在一起形成了一個大的島嶼,如果海平面上升超過某些島的高度時,

原创 python爬蟲實戰之爬取知乎帖子

 剛開始學習python爬蟲,參考代碼:https://github.com/lijaha/web-spider/blob/master/Get_ZhiHu_question.py  相關教程http://www.cnblogs.com/

原创 HackerRank Week of Code -18 GG

Problem Statement You are given an integer, N and a string, S of the length N−1 consisting of the letters 'G' an

原创 zoj 3913 Bob wants to pour water(zoj 2015年10月月賽k題)

Bob wants to pour water Time Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge There is a huge cubiod hou

原创 hihoCoder 1236 Scores(2015北京賽區網絡賽)

時間限制:4000ms 單點時限:4000ms 內存限制:256MB 描述 Kyle is a student of Programming Monkey Elementary School. Just as others,

原创 51nod 1241 特殊的排序(鍛鍊思維的好題)

題目:http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1241 一個數組的元素爲1至N的整數,現在要對這個數組進行排序,在排序時只能將元素放在數組的頭部