原创 Leetcode 2896. 執行操作使兩個字符串相等

https://leetcode.cn/problems/apply-operations-to-make-two-strings-equal/description/ 給你兩個下標從 0 開始的二進制字符串 s1 和 s2 ,兩個字符串的

原创 Leetcode 2894. 分類求和並作差

https://leetcode.cn/problems/divisible-and-non-divisible-sums-difference/submissions/521201434/ 給你兩個正整數 n 和 m 。 現定義兩個整數

原创 Leetcode 866. 迴文質數

https://leetcode.cn/problems/prime-palindrome/description/ 給你一個整數 n ,返回大於或等於 n 的最小 迴文質數。 一個整數如果恰好有兩個除數:1 和它本身,那麼它是 質數 。注

原创 挑戰程序設計競賽 2.6章習題 POJ 1930 Dead Fraction

https://vjudge.csgrandeur.cn/problem/POJ-1930 邁克在最後一刻拼命地趕着完成他的論文。在接下來的3天裏,他需要將所有的研究筆記整理成較爲連貫的形式。 不幸的是,他注意到他在計算方面非常粗心。每當他

原创 kuangbin專題刷題記錄

待開啓 https://www.acwing.com/activity/content/90/ https://vjudge.net/article/187 https://vjudge.net/article/674

原创 挑戰程序設計競賽 2.6章習題 UVA - 10006 Carmichael Numbers

https://vjudge.csgrandeur.cn/problem/UVA-10006  當今計算機科學的一個重要的領域就是密碼學。有些人甚至認爲密碼學是計算機科學中唯一重要的領域,沒有密碼學生命都沒有意義。   阿爾瓦羅就是這樣的一

原创 Acwing 基礎課 刷題進度 自用

https://www.acwing.com/activity/content/punch_the_clock/11/ 一般用戶無該題庫權限, 題解就不予以公開了。 記錄一些計劃解決但是沒解決的題目。和刷題的進度 第一講 基礎算法 約數之

原创 挑戰程序設計競賽 2.6章習題 poj 3421 X-factor Chains

https://vjudge.net/problem/POJ-3421#author=GPT_zh Given a positive integer X, an X-factor chain of length m is a sequenc

原创 lua小小實戰的資料

Lua 實現JSON解析器 http://www.manongjc.com/detail/25-ozepzazdsivhrxe.html https://blog.51cto.com/u_15072927/3936779 遊戲中的排行榜Lu

原创 Leetcode 1691. 堆疊長方體的最大高度

https://leetcode.cn/problems/maximum-height-by-stacking-cuboids/description/ 給你 n 個長方體 cuboids ,其中第 i 個長方體的長寬高表示爲 cuboid

原创 Leetcocde 1092. 最短公共超序列

https://leetcode.cn/problems/shortest-common-supersequence/description/ 給你兩個字符串 str1 和 str2,返回同時以 str1 和 str2 作爲 子序列 的最短

原创 Leetcode 066 加一

https://leetcode.cn/problems/plus-one/description/ 給定一個由 整數 組成的 非空 數組所表示的非負整數,在該數的基礎上加一。 最高位數字存放在數組的首位, 數組中每個元素只存儲單個數字。

原创 Leetcode 050. Pow(x, n)

https://leetcode.cn/problems/powx-n/description/ 實現 pow(x, n) ,即計算 x 的整數 n 次冪函數(即,xn )。 示例 1: 輸入:x = 2.00000, n = 1

原创 Leetcode LCP 02. 分式化簡

https://leetcode.cn/problems/deep-dark-fraction/description/ 有一個同學在學習分式。他需要將一個連分數化成最簡分數,你能幫助他嗎? 連分數是形如上圖的分式。在本題中,所有係數都

原创 Leetcode LCP 14. 切分數組

https://leetcode.cn/problems/qie-fen-shu-zu/description/ 給定一個整數數組 nums ,小李想將 nums 切割成若干個非空子數組,使得每個子數組最左邊的數和最右邊的數的最大公約數大於