原创 HDU 5954 Do not pour out(二分+積分)

傳送門 You have got a cylindrical cup. Its bottom diameter is 2 units and its height is 2 units as well.The height of

原创 FZU Problem 1919 K-way Merging sort(大數+記憶化搜索)

傳送門 As we all known, merge sort is an O(nlogn) comparison-based sorting algorithm. The merge sort achieves its good

原创 HDU 4336 Card Collector(狀態壓縮+概率DP)

傳送門 In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example,

原创 linux下tmux的使用

Tmux(terminal multiplexer)顧名思義是一個終端複用器,在開發過程中非常實用,可以很好的達到分屏作用。 終端會話 用戶與計算機的交互方式就是打開一個終端窗口,進行會話(session)。session的特點是

原创 【LeetCode】49. Group Anagrams (非哈希做法)

傳送門 Example: Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Output: [ [“ate”,“eat”,“tea”], [“nat”,“tan”], [“bat

原创 POJ 2151 Check the difficulty of problems(概率DP)

傳送門 Organizing a programming contest is not an easy job. To avoid making the problems too difficult, the organizer

原创 ZOJ 3329 One Person Game——(概率DP+待定係數求解方程)

傳送門 There is a very simple and interesting one-person game. You have 3 dice, namely Die1, Die2 and Die3. Die1

原创 Codeforces 148D. Bag of mice(概率DP)

傳送門 The dragon and the princess are arguing about what to do on the New Year’s Eve. The dragon suggests flying to t

原创 ZOJ 3380 Patchouli's Spell Cards(概率DP)

傳送門 Patchouli Knowledge, the unmoving great library, is a magician who has settled down in the Scarlet Devil Man

原创 2017 ACM-ICPC 亞洲區(西安賽區)網絡賽 F.Trig Function(論文+組合數)

傳送門 f(cos(x))=cos(n∗x) holds for all x . Given two integers n and m , you need to calculate the coefficient of x

原创 2017 ACM-ICPC 亞洲區(西安賽區)網絡賽 B.Coin(基本概率+二項式展開)

傳送門 Bob has a not even coin, every time he tosses the coin, the probability that the coin’s front face up is qp(qp

原创 K-means 算法原理

1. 聚類 K-means算法是一種常用的聚類算法,所謂的聚類就是指給定NNN個樣本的數據集,需要構造 kkk 個簇(類),使得這 kkk 個簇之間的關係最小。 2. K-means算法基本步驟 隨機初始化kkk個點,作爲聚類中

原创 利用tensorflow實現LeNet5卷積神經網絡

首先介紹一下什麼是卷積神經網絡。 卷積神經網絡(Convolutional Neural Networks, CNN)是一類包含卷積計算且具有深度結構的前饋神經網絡(Feedforward Neural Networks),是深度

原创 win10安裝tensorflow CPU版本(不使用Anaconda)

之前使用了一段時間的tensorflow,但是後來由於一些原因導致不好用了,所以重新安裝了一下。之前是用的Anaconda安裝,但是太費勁了,光下載東西就要等好久,Anaconda這個雖然好用,但是個人感覺太笨重了,所以就直接安裝

原创 PHP實現簡單計算器小程序

這篇文章主要爲大家詳細介紹了PHP實現簡單計算器小程序,具有一定的參考價值,感興趣的小夥伴們可以參考一下 最近剛開始學習一門新的語言 PHP,然後就寫了一個計算器的小程序,大體上的思路就是有一個前臺程序和一個後臺程