会慢慢更新的 我发现pwn其实跟算法相似处,就是逻辑、流程,这两个只要是件事情,就都有的共同点。 流程与逻辑: 例如当你构造Ropchain时候,你需要逻辑清晰,而你要明白你为什么能利用这个漏洞时,你需要明白跟这个漏洞有关的函数,它执行时,流程是什么样子的。从这两个点深入探究,可能就是我们所说的挖洞 ...
分类:
其他好文 时间:
2020-05-18 12:45:47
阅读次数:
160
老经典题了 #include<bits/stdc++.h> using namespace std; #define N 105 #define ll long long #define mod 1000000007 ll n,m; char buf[N],s[N]; struct Matrix{ ...
分类:
其他好文 时间:
2020-05-17 13:00:07
阅读次数:
63
行列式 n阶行列式的计算: $$ \left|\begin{matrix}a_{11} & a_{12} & \cdots & a_{1n} \\a_{21} & a_{22} & \cdots & a_{2n} \\\vdots & \vdots & \ddots & \vdots \\a_{n1 ...
分类:
其他好文 时间:
2020-05-15 20:39:27
阅读次数:
121
"题目" 其中$A$是一个$n \times n$的矩阵,$S_k = A + A^2 + A^3 + … + A^k$,求$S_k$ 按照数论出现和,那么构造一个和数论一起递推的式子$S_k = S_{k 1} + A^k$ 那么假设$A$不是矩阵 $$\left[\begin{array}{l} ...
分类:
其他好文 时间:
2020-05-14 22:31:12
阅读次数:
72
在一个 n m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 示例: 现有矩阵 matrix 如下: [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], ...
分类:
编程语言 时间:
2020-05-14 17:26:47
阅读次数:
56
实现自动化登录微云账号。 问题分析 firefox_driver = webdriver.Firefox() firefox_driver.get("https://www.weiyun.com/") firefox_driver.implicitly_wait(10) # 登录账号 firefox ...
分类:
其他好文 时间:
2020-05-14 13:16:53
阅读次数:
230
Graph表示 1. adjacency matrix 2. 如下的,很多graph数据库用这种 use cases: ...
分类:
其他好文 时间:
2020-05-13 23:14:17
阅读次数:
61
题目: 搜索二维矩阵 II:编写一个高效的算法来搜索 m x n 矩阵 matrix 中的一个目标值 target。该矩阵具有以下特性: 每行的元素从左到右升序排列。 每列的元素从上到下升序排列。 思路: 二分查找常规思路。 程序: class Solution: def searchMatrix( ...
分类:
编程语言 时间:
2020-05-12 11:59:03
阅读次数:
220
前言 页面上有些元素定位路径比较复杂,可以先定位到该元素使用别名,通过这个别名去操作元素,这样看起来简洁一些。 .as()使用别名定位元素 table表格上的元素定位使用示例 // The following DOM command chain is unwieldy. // To avoid re ...
分类:
其他好文 时间:
2020-05-11 21:54:39
阅读次数:
65
Problem Statement Problem Vestigium means "trace" in Latin. In this problem we work with Latin squares and matrix traces. The trace of a square matrix ...
分类:
其他好文 时间:
2020-05-11 09:15:09
阅读次数:
68