首页 > TAG信息列表 > rlt

BUUCTF:[SWPU2019]Network

题目来源:https://buuoj.cn/challenges#[SWPU2019]Network 题目给了txt文件  TTL隐写 贴个代码 with open('attachment.txt') as f: lines = f.readlines() n_num = [] #分析出所有的数 for i in lines: if i!='\n': n_num.append(int(i)) #拿到每个TTL值的

常见的求最大公约数的方法

最大公约数 最大公约数和最小公倍数求解,常用的方法是短除法进行因式分解,然后最大公约数是所有公共因子的乘积,最小公倍数是所有因子的乘积。 本质上求最小公倍数就是求最大公倍数:x=m*a, y=m*b;m是最大公约数,那最小公倍数就是m*a*b。所以可以得到最大公约数与最小公倍数的关系: L

448. Find All Numbers Disappeared in an Array

448. Find All Numbers Disappeared in an Array Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] inclusive that do not appear in this array. Could you

大数据微专业_1.Python基础_1.6_模块与包

In [ ]: ''' 1.6.1 ''' In [6]: def f1(): print('hello') def f2(a,b): return a**b #创建模块testmodel.py, 包含两个函数inf()/fun() # 可以在sublime中生成 In [3]: import sys sys.path.append("D:\Training\Python_Te