原创 pat甲級1005 Spell It Right

題解:輸出各位之和,用英文表達。 #include<iostream> #include<vector> #include<algorithm> #include<string> using namespace std; int mai

原创 VS2017運行框閃退永久解決方案

1.打開視圖——其他窗口——屬性管理器 2. 3.  

原创 pat甲級1006 Sign In and Sign Out

#include<iostream> #include<string> #include<stdio.h> using namespace std; int main() { int n; string lock, unlock,i

原创 C++ STL之vector用法總結

介紹 vector是表示可變大小數組的序列容器。 就像數組一樣,vector也採用的連續存儲空間來存儲元素。也就是意味着可以採用下標對vector的元素進行訪問,和數組一樣高效。但是又不像數組,它的大小是可以動態改變的,而且它的大小會被容

原创 pat甲級 1004 Counting Leaves(輸出每層葉子結點)(dfs)

#include<iostream> #include<vector> #include<algorithm> using namespace std; vector<int> v[100]; int maxdepth = -1,boo

原创 pat甲級1008 Elevator (簡單數學)

#include<iostream> using namespace std; int main() { int n,k,now=0,sum=0; cin >> n; while (n--) { cin >> k; if

原创 pat甲級 1009 Product of Polynomials(模擬)

要記得把數組開到最大。1005,2005. #include<iostream> #include <stdlib.h> using namespace std; int main() { int k, n; double aN,

原创 pat1002 甲級 A+B for Polynomials (25 分)

This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contain

原创 pat甲級 1001 a+b

1001 A+B Format (20 分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated int

原创 【轉載】 詳解最大似然估計(MLE)、最大後驗概率估計(MAP),以及貝葉斯公式的理解

最大似然估計(Maximum likelihood estimation, 簡稱MLE)和最大後驗概率估計(Maximum a posteriori estimation, 簡稱MAP)是很常用的兩種參數估計方法,如果不理解這兩種方法的思

原创 【轉載】簡單易學的機器學習算法——EM算法

結束有Python實現的代碼:https://blog.csdn.net/google19890102/article/details/46431715一、機器學習中的參數估計問題    在前面的博文中,如“簡單易學的機器學習算法——Lo

原创 Map 綜述(二):徹頭徹尾理解 LinkedHashMap

https://blog.csdn.net/justloveyou_/article/details/71713781點擊打開鏈接摘要:  HashMap和雙向鏈表合二爲一即是LinkedHashMap。所謂LinkedHashMap

原创 Map 綜述(一):徹頭徹尾理解 HashMap

摘要:  HashMap是Map族中最爲常用的一種,也是 Java Collection Framework 的重要成員。本文首先給出了 HashMap 的實質並概述了其與 Map、HashSet 的關係,緊接着給出了 HashMap

原创 selenium如何關閉瀏覽器中新打開的標籤頁

昨天發現的問題,第一次解決方法:String jsClose = "self.close()"; jse.executeScript(jsClose);發現前面必須要引用chromeSwitchTo這一方法

原创 Matlab雜記之 HashTable

  點擊打開鏈接https://blog.csdn.net/chaosstar/article/details/8268602  哈希表是一種很有用的數據結構,其可由關鍵字(key)直接定位到數據值(value);在很多應用中,使用哈希表