678 1 分鐘

⭐️ # 題目敘述 Given two strings s and t , return true if t is an anagram of s , and false otherwise. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. # Example 1 Input: s = "anagram",...
394 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 Virtual Private Network (VPN) 虛擬私人網路 使用 VPN 可在電腦和 VPN 提供者的伺服器之間建立一條安全的、加密的通道。 在電腦和 VPN 提供者的伺服器之間建立數位連線,形成點對點通道,可加密個人資料,同時遮罩 IP 位址,在網際網路上能夠跨越網站封鎖和防火牆的限制,使用 VPN 確保連線體驗更為私人、受保護且更安全。 VPN 提供了一種安全、私密且匿名的連線方式,特別適合需要在不受信任的網路環境中保護敏感資料的情況。 Virtual: 連線過程未涉及實體纜線 Private:...
1.7k 2 分鐘

⭐️ # 題目敘述 You are given the array paths , where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to cityBi . Return the destination city, that is, the city without any path outgoing to another city. It is guaranteed that the graph of paths forms a line without any loop,...
298 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 簡介 Linux Linux 是一種作業系統的核心,有時候的 Linux 也被稱為基於 Linux 的完整作業系統,如: Ubuntu、CentOS、Debian、Gentoo,作業系統除了 Linux 核心外,其中也包含了許多使用者圖形介面和其他實用工具。 # Linux 開機流程 # BIOS / UEFI # GPT / MBR # GRUB # vmlinuz # initramfs / initrd # systemd # Linux 工具 # 文字編輯器 # Shell Scripts # Tmux # NFS #...
1k 1 分鐘

🌗🌑🌑🌑🌑 # 題目連結 題目連結 Online Judge uDebug # 題目說明 Time limit: 3.000 seconds # 題目 Hashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his opponents. Before Fighting he just calculates one thing, the difference between his soldier number...
2.2k 2 分鐘

🌕🌑🌑🌑🌑 # 題目連結 題目連結 Online Judge uDebug # 題目說明 Time limit: 3.000 seconds # 題目 A social research organization has determined a simple set of parameters to simulate the behavior of the political parties of our country. One of the parameters is a positive integer h (called the hartal parameter)...
2k 2 分鐘

⭐️⭐️⭐️ # 題目敘述 You are given a 0-indexed m x n binary matrix grid . A 0-indexed m x n difference matrix diff is created with the following procedure: Let the number of ones in the ith row be onesRowi . Let the number of ones in the jth column be onesColj . Let the number of zeros in the ith row be...
1.8k 2 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 題目 利用 The Sieve of Eratosthenes 演算法找出質數 # 單機版程式 #include <bits/stdc++.h>#define ALLNUM 100000000using namespace std;long long arr[ALLNUM + 1] = {0};int main() { int k = 2; long start = clock(); for (int i = 2; i <= ALLNUM;)...
3.2k 3 分鐘

# 安裝 Microsoft MPI Microsoft MPI 官方網站 下載 Microsoft MPI 官方參考文件 # With vscode in Windows 點擊官網連結,並點擊 MS-MPI 下載,點擊 MS-MPI v10.1.3,導至下載畫面,點擊 Download,選取兩個 File,兩個都要下載喔~~ 將下載的兩個檔案點開執行 打開 cmd 輸入指令 set MSMPI ,會看到 MPI 設定的環境變數,表示安裝有成功 ">set MSMPIMSMPI_BENCHMARKS=C:\Program Files\Microsoft...