原创 類型安全&弱類型安全

調查報告:什麼是類型安全?什麼是弱類型語言?舉例說明之     類型安全代碼指訪問被授權可以訪問的內存位置。“類型安全”常被用來形容編程語言,其根據在於該門編程語言是否提供保障類型安全的機制;有的時候也用“類型安全”形容某個程序,判別的標

原创 針對各種字符串計算其所需存儲空間長度(報告素材)

#原創:https://blog.csdn.net/ALPS233/article/details/102736109 首先計算 單字節字符,寬字符 所需的儲存空間長度分別是 sizeof(char) = 1; sizeof(wc

原创 Canary棧保護機制

實驗要求:調研 VC .net 或 GCC 4.*中的 Canary 技術實現, 弄懂原理並設計相應的實驗例程進行測試,編制相應 報告。 實驗環境: Windows 10, 編譯器配置爲 TDM-GCC 4.8.1 64-BIT

原创 單字節字符串、寬字符串和多字節字符串

調查報告:瞭解單字節字符串、寬字符串 和多字節字符串等C/C++語言字符串表示方 法,總結其原理、存儲、操作、應用等特 徵,並編制報告。 單字節字符串(Single-Byte): 原理:每個字符用一個字節表示。這就決定了單字節字符

原创 strncpy、strcpy_s、 strncpy_s、strlcpy、strncat、strcat_s、 strncat_s、 strlcat等字符串函數彙總

調查報告:整理並用實驗比較分析strncpy、strcpy_s、 strncpy_s、strlcpy、strncat、strcat_s、 strncat_s、 strlcat等函數的異同 包含在頭文件 string .h 中。 S

原创 (OpenAI Gym agent) First Attempt -----Agent with predefined rules using CartPole-v1

Introductions: Using ‘CartPole-v1’ environment in gym, game introduction: [Retrieved from https://gym.openai.com/e

原创 [hdu 2586](LCA Tarjan算法)

算法參考:http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f73c6f888b442282c45f93130a1c187bb8e7737f0704

原创 【UOJ #218. 【UNR #1】】火車管理 可持久化線段樹

題目: uoj 旗下有一個火車站,用來管理屬於 uoj 的小火車。 火車站一共有 n n 條編號爲 1,…,n 1,…,n 的,只有一端的用來存放小火車的鐵路,由於小火車特殊的構造,每條鐵路可以停放無數輛小火車。每條鐵路是

原创 【poj 3164】Command Network 最小樹形圖

題目:http://poj.org/problem?id=3164 Command Network Time Limit: 1000MS Memory Limit: 131072K Total Submissions: 16037

原创 【poj 3150】Cellular Automaton 矩陣

題目:http://poj.org/problem?id=3150 Cellular Automaton 矩陣乘法+二分 Cellular Automaton Time Limit: 12000MS Memory Limit: 655

原创 1619: [Usaco2008 Nov]Guarding the Farm 保衛牧場 搜索

題目:http://www.lydsy.com/JudgeOnline/problem.php?id=1619 1619: [Usaco2008 Nov]Guarding the Farm 保衛牧場 Time Limit: 5 Sec

原创 [poj 3342]Party at Hali-Bula 樹形dp

題目鏈接:http://poj.org/problem?id=3342 Party at Hali-Bula Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 5

原创 【poj 2983】Is the Information Reliable? 差分約束

題目:http://poj.org/problem?id=2983 Is the Information Reliable? Time Limit: 3000MS Memory Limit: 131072K Total Submi

原创 【bzoj1617】: [Usaco2008 Mar]River Crossing渡河問題 dp

題目:http://www.lydsy.com/JudgeOnline/problem.php?id=1617 1617: [Usaco2008 Mar]River Crossing渡河問題 Time Limit: 5 Sec Mem

原创 【poj 2976】 Dropping tests 二分(分數優化)

題目:http://poj.org/problem?id=2976 Dropping tests Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9121 Ac