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;)...
2.4k 2 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 題目 # 單機版程式 #include <bits/stdc++.h>using namespace std;int circuit(int *in){ int res = (in[0] | in[1]) & (~in[1] | ~in[3]) & (in[2] | in[3]) & (~in[3] | ~in[4]) & (in[4] | ~in[5]) & (in[5] | in[6]) &...
3.1k 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...
2.1k 2 分鐘

訊息傳遞介面(英語:Message Passing Interface,縮寫 MPI)是一個平行計算的應用程式接口(API),常在超級電腦、電腦叢集等非共享記憶體環境程序設計。 # Process vs. Thread 在多功作業系統 (Multitasking Operating System) 中,可以同時執行數個 Process ,然而一個 CPU 一次只能執行一個 Process (因此才有現在的多核處理器),而 Process 的運行量總量不會少於 CPU 的總量,又 Process 會佔用記憶體,因此如何排程 (Scheduling,恐龍本第五章) 、如何有效管理記憶體...
890 1 分鐘

# Nonogram Puzzle 規則 Input 1000 nonogram puzzles with size 25 * 25 symbol "$" before the puzzles number 50 lines of clues (puzzles description) The former 25 are clues at the top end from up to down The former 25 are clues at thr left end from left to right "0"...
1.3k 1 分鐘

🌕🌗🌑🌑🌑 # 題目連結 題目連結 Online Judge uDebug # 題目說明 Time limit: 3.000 seconds # 題目 The world-known gangster Vito Deadstone is moving to New York. He has a very big family there, all of them living in Lamafia Avenue. Since he will visit all his relatives very often, he is trying to find a house close...