10 2020 档案
摘要:The rural lifestyle has many advantages. As we all know, the countryside is closer to the field and natural scenery. The air is fresher, the river is
阅读全文
摘要:GCD算法原理: 扩展GCD算法原理: 代码呀: def gcd(a, b): while a != 0: a, b = b%a, a return b # calc : b^(-1) mod m def IntModInverse(b, m, show = True): if gcd(m,b) !
阅读全文
摘要:jt -t solarizedl -fs 11 -f hasklig -cellw 75% -T jt -t solarizedl -fs 11 -f hasklig -cellw 75% -T
阅读全文
摘要:1. numpy.ndarray类型乘积 1.1 矩阵乘法 a@b np.dot(a, b) np.matmul(a, b) 1.2 对应位置元素相乘 a*b np.multiply(a, b) 2.numpy.matrix类型乘积 2.1 矩阵乘法 a@b a*b np.dot(a,b) np.m
阅读全文
摘要:题目一 密钥矩阵的构造 新建5x5的表格,依次填入密钥单词,字母不重复,然后字母a-z一次不重复填入,注意字母i和字母j占据同一个位置,一般来说加密的时候明文中的j字母都可以替换成字母i。 密文两两分组 密文: KXJEY UREBE ZWEHE WRYTU HEYFS KREHE GOYFI WT
阅读全文
摘要:背景 最近在做算法作业,要用C去实现,虽然内心是崩溃食xiang的,但还是抑制住了退课的冲动……这里记录一下一个小情景的实现。 要用C语言定义一个swap函数实现一维数组的元素交换顺序。因为涉及到数组、指针、函数传参这三个概念,所以保存一下警示自己。 主函数代码 #include<stdio.h>
阅读全文