摘要:
Public nRows As Long, nCols As Long, nLastRow As Long, tmpSum As Long, tmpRow As Long, r As Long, c As Long Public sumRows() As Long, nRowSkipSum() As 阅读全文
摘要:
Public nRows As Long, nCols As Long, nLastRow As Long, tmpSum As Long, tmpRow As Long, r As Long, c As Long Public sumRows() As Long, nRowSkipSum() As 阅读全文
摘要:
Sub 限行列和随机加墙版() Dim nRows As Long, nCols As Long, nLastRow As Long, tmpSum As Long, tmpRow As Long, r As Long, c As Long Dim sumRows() As Long, nRowSk 阅读全文
摘要:
Public dic As Object, dic_工资求和 As Object, dic_已交税额 As Object, dic_项目信息 As Object Public ar_res, ar_src Sub main() 清空 获取原始数据_身份证号码和姓名 受雇日期和人员状态写入字典 在结果 阅读全文
摘要:
Sub 二分查找() nums = Array(-1, 0, 3, 5, 9, 12) target = 12 Debug.Print (search(nums, target)) End Sub Public Function search(nums, target) If target < nu 阅读全文
摘要:
Sub 贪心算法_分发饼干() g = Array(1, 2) s = Array(1, 2, 3) Debug.Print (findContectChildren(g, s)) Debug.Print (findContentChilren(g, s)) End Sub Function fin 阅读全文
摘要:
Sub 身份证() With Me .Range("f:f").NumberFormatLocal = "@" lastRow = .Cells(.Rows.Count, 1).End(xlUp).Row For x = 2 To lastRow ' If x = 43 Then Stop s = 阅读全文
摘要:
Sub combinationSum() ar = Array(1, 2, 3) target = 4 Dim dp() ReDim dp(target + 1) dp(0) = 1 For i = 0 To target For j = 0 To UBound(ar) If i >= ar(j) 阅读全文