原创 HDU6621 K-th Closest Distance - 可持久化線段樹(主席樹) - 權值線段樹 - 數據離散化 - 二分搜索法

K-th Closest Distance Time Limit: 20000/15000 MS (Java/Others)   Memory Limit: 524288/524288 K (Java/Others) Tot

原创 POJ3190 Stall Reservations - 優先隊列

Stall Reservations     題目大概意思: 有 NNN 頭牛,第 iii 頭牛的產奶時間爲 [Ai,Bi](1≤Ai≤Bi≤106)[A_i, B_i] (1≤A_i≤B_i≤10^6)[Ai​,Bi​](1≤A

原创 POJ3293 Rectilinear polygon - 平面掃描 - 座標離散化 - 樹狀數組維護掃描線

Rectilinear polygon Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 2237   Accepted: 283 Description

原创 POJ3735 Training little cats - 矩陣快速冪 -稀疏矩陣乘法優化

Training little cats Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 16336   Accepted: 3998 Descriptio

原创 POJ3262 Protecting the Flowers - 貪心法

Protecting the Flowers Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 11508   Accepted: 4671 Descript

原创 機器學習的基本分類和基本問題

機器學習的基本分類 按映射類型分類 歸納(induction) 演繹(deduction) 類比(analogy) 轉導(transduction) 按反饋類型分類 有監督學習(supervised learn

原创 POJ3126 Prime Path - 素數篩 - 寬度優先搜索(bfs)

Prime Path     題目大概意思: 給出兩個素數 aaa 和 bbb (103&lt;a,b&lt;10410^3&lt;a,b&lt;10^4103<a,b<104),每次可以修改 aaa 的四位十進制數字中的一位數字

原创 vscode(linux)中讓一個task的輸出作爲另一個task的輸入的方法

完整命令是用pkg-config輸出opencv4的包含和鏈接信息,並且作爲g++的參數進行編譯: pkg-config --cflags --libs --static opencv4 | xargs g++ -g exampl

原创 ubuntu19.10(GNOME)中隱藏已掛載的卷和設備圖標的方法

輸入如下命令安裝GNOME及相關組件: sudo apt install gnome gnome-tweaks gnome-tweak-tool gnome-shell gnome-shell-extension-dashto

原创 HDU6621 K-th Closest Distance - 線段樹 - 歸併樹 - 二分搜索法

K-th Closest Distance Time Limit: 20000/15000 MS (Java/Others)   Memory Limit: 524288/524288 K (Java/Others) Tot

原创 POJ1862 Stripies - 貪心法 - 數學推導

Stripies Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 23136   Accepted: 10062 Description Our c

原创 POJ1284 Primitive Roots - 數論 - 原根 - 歐拉函數

Primitive Roots Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 6187   Accepted: 3529 Description We

原创 POJ3421 X-factor Chains - 數論 - 質因子分解 + 排列組合

X-factor Chains Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 9796   Accepted: 3164 Description Giv

原创 POJ2482 Stars in Your Window - 平面掃描 - 座標離散化 - 區間更新的線段樹

Stars in Your Window Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 15614   Accepted: 4210 Descriptio

原创 POJ2377 Bad Cowtractors - 最小生成樹 - Kruskal算法

Bad Cowtractors Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 19957   Accepted: 8031 Description Bes