原创 VSCode 如何遠程連接其他主機的 WSL2

VSCode 如何遠程連接其他主機的 WSL2 VSCode 的 Remote Deployment 插件對 WSL2 直接提供了支持,能夠很方便的連接本機的 WSL2 ,但是並沒有提供一個連接遠程 WSL2 的解決方

原创 Scrapy 爬蟲框架學習筆記(未完,持續更新)

Scrapy 爬蟲框架 Scrapy 是一個用 Python 寫的 Crawler Framework 。它使用 Twisted 這個異步網絡庫來處理網絡通信。 Scrapy 框架的主要架構 根據它官網上的設計架構圖,一個

原创 PAT乙級:1015 德才論 (25分)

1015 德才論 (25分) 宋代史學家司馬光在《資治通鑑》中有一段著名的“德才論”:“是故才德全盡謂之聖人,才德兼亡謂之愚人,德勝才謂之君子,才勝德謂之小人。凡取人之術,苟不得聖人,君子而與之,與其得小人,不若得愚人。” 現給出一批考生的

原创 使用RD Client來遠程桌面

使用RD Client來遠程桌面 可能你會覺得奇怪,team viewer和向日葵之類的難道不香嗎?看起來他們兩個都是實現了遠程桌面的功能,好像沒必要特地用Windows自帶的RD Client進行內網穿透之後遠程桌面。 實際上team v

原创 poj1182:食物鏈

poj1182:食物鏈 聽說是poj中最經典的一道並查集題目。我一做,果然很經典呢!好難啊!!!真的琢磨了很久還弄懂。這道題的重點就在於怎麼用並查集表示題目中的關係環。 1. 題幹 原題傳送門1 原題傳送門2 2. 思路詳解 實際上,在

原创 CSAPP:bomblab

BOMBLAB實驗總結 CSAPP實驗BOMB,很頭疼,看不懂,勉強做完了。 答案是這樣的: Border relations with Canada have never been better. 1 2 4 8 16 32 2 707

原创 CSAPP:datalab實驗記錄

CSAPP:datalab實驗記錄 bitXor /* * bitXor - x^y using only ~ and & * Example: bitXor(4, 5) = 1 * Legal ops: ~ & *

原创 PAT甲級:1025 PAT Ranking (25分)

PAT甲級:1025 PAT Ranking (25分) 題幹 Programming Ability Test (PAT) is organized by the College of Computer Science and Techn

原创 PAT甲級:1152 Google Recruitment (20分)

PAT甲級:1152 Google Recruitment (20分) 題幹 In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Val

原创 PAT甲級:1124 Raffle for Weibo Followers (20分)

PAT甲級:1124 Raffle for Weibo Followers (20分) 題幹 John got a full mark on PAT. He was so happy that he decided to hold a ra

原创 PAT甲級:1066 Root of AVL Tree (25分)

PAT甲級:1066 Root of AVL Tree (25分) 題幹 An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of

原创 PAT甲級:1136 A Delayed Palindrome (20分)

PAT甲級:1136 A Delayed Palindrome (20分) 題幹 Look-and-say sequence is a sequence of integers as the following: D, D1, D111,

原创 PAT甲級:1089 Insert or Merge (25分)

PAT甲級:1089 Insert or Merge (25分) 題幹 According to Wikipedia: Insertion sort iterates, consuming one input element each re

原创 PAT甲級:1036 Boys vs Girls (25分)

PAT甲級:1036 Boys vs Girls (25分) 題幹 This time you are asked to tell the difference between the lowest grade of all the mal

原创 PAT甲級:1064 Complete Binary Search Tree (30分)

PAT甲級:1064 Complete Binary Search Tree (30分) 題幹 A Binary Search Tree (BST) is recursively defined as a binary tree which