原创 XV6作業1 bigger file

1,Preliminaries 實驗前,要根據mit的文檔修改三個地方。 首先,打開Makefile,將CPUS改爲1,即爲使用一個CPU。 然後依然在Makefile中的QEMUOPTS上面添加QEMUEXTRA = -snapshot

原创 POJ2502(最短路)(dji)

Subway Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 17354   Accepted: 5544 Description You have just mo

原创 jungle roads|POJ 1251(最小生成樹)(kruskal)

Jungle Roads Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 38849   Accepted: 18287 Description The Hea

原创 Latex+VScode配置

轉載自: https://zhuanlan.zhihu.com/p/19779481?columnSlug=LaTeX https://www.jianshu.com/p/dc0ffa4368e3 一、安裝TexLive2019 這裏參考

原创 poj 1011 木棒長度

Url:http://poj.org/problem?id=1011 搜索的經典題目。有一堆不同長度木棒,問你用這些木棒首尾相接所組成的一系列長度相等的木棒的最短長度。 思路就是用DFS搜索,關鍵在剪枝: 1.答案的長度必然可以整除總長度

原创 Python Plt顏色配色一覽(熱力圖)

環境: python 3.7 可用配色: ['Accent','Accent_r','Blues','Blues_r','BrBG','BrBG_r','BuGn','BuGn_r','BuPu','BuPu_r','CMRmap','

原创 Poj2010(堆-優先隊列)

                                     Moo University - Financial Aid Time Limit: 1000MS   Memory Limit: 30000K Total Sub

原创 leecode78(求子序列)

遞歸方法 #include<iostream> #include<stdio.h> #include<vector> using namespace std; void dfs(int num,vector<vector <int> >

原创 TensorFlow卷積函數tf.nn.conv2d

tf.nn.conv2d 在TensorFlow中使用tf.nn.conv2d實現卷積操作,其格式如下:   tf.nn.conv2d( input, filter, strides, padding,

原创 HihoCoder - 1847

B - 等分數字串  HihoCoder - 1847  給定一個只包含0-9的字符串S,請你判斷能否將S劃分爲兩個或兩個以上連續的子串,使得每一個子串中的數字總和都相等。 Input 輸入包含多組數據。 第一行包含一個整數N,代表數據組

原创 HihoCoder - 1846 dfs

A - ABC  HihoCoder - 1846  雜貨鋪老闆一共有N件物品,每件物品具有ABC三種屬性中的一種或多種。從雜貨鋪老闆處購得一件物品需要支付相應的代價。   現在你需要計算出如何購買物品,可以使得ABC三種屬性都在購買的物

原创 AC自動機算法詳解 (轉載)

AC自動機算法詳解 (轉載) https://www.cnblogs.com/cmmdc/p/7337611.html 首先簡要介紹一下AC自動機:Aho-Corasick automation,該算法在1975年產生于貝爾實驗室,是著名

原创 poj 3126 bfs+素數篩

#include<iostream> #include<stdio.h> #include<cstring> #include<queue> #include<cmath> #define show(a) cout<<#a<<" = "

原创 hdu 1394 樹狀數組求逆序數

Problem Description The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) tha

原创 codeforce 1064D bfs

D. Labyrinth time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard out