查看给的附件,就明白,这对公钥中,n过大,所以我们直接对c开e此方即可 aaa.py中是之前利用python写入的c from aaa import * import gmpy2 e = 65537 def dec(ctxt): c = ctxt eth_root = gmpy2.iroot(c, ...
分类:
其他好文 时间:
2020-04-06 23:43:11
阅读次数:
177
Given a list of positive integers nums and an int target, return indices of the two numbers such that they add up to a target - 30. Conditions: You wi ...
分类:
其他好文 时间:
2020-04-06 09:49:05
阅读次数:
76
Problem : Count the number of prime numbers less than a non negative number, n. Example: 思路 : Solution (C++) : 性能 : Runtime: 208 ms Memory Usage: 6.6 ...
分类:
其他好文 时间:
2020-04-06 00:11:19
阅读次数:
84
POJ-3252——Round Numbers 传送门:http://poj.org/problem?id=3252 题意:求n-m中二进制表示0的数量不小于1的数的个数 要找二进制0和1的个数,因为是按位数来找的,可以考虑数位dp 状态dp[pos][_0][_1] 表示为dp[当前第几位][含0 ...
分类:
其他好文 时间:
2020-04-04 21:05:13
阅读次数:
68
一、数位dp?干嘛的? 通常用来求两个数之间符合条件的数的个数,而且这两个数很大,暴力做不来,数位dp一般用来计数,因为数位dp是按位来计算,所以大数都搞得定,数的大小对时间复杂度的影响很小,而且一般符合某种条件的这个条件与数的组成有关,与大小无关 二、如何设计状态?? 据我所知,数位dp一般有两种 ...
分类:
其他好文 时间:
2020-04-04 18:41:33
阅读次数:
61
1.打开终端突然出现@bogon,然后。。。 2.输入以下命令修改一下就好了~ sudo scutil --set HostName localhost 改好后重启一下就好 ...
分类:
系统相关 时间:
2020-04-04 11:24:38
阅读次数:
64
题目: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/find-numbers-with-even-number-of-digits 给你一个整数数组 nums,请你返回其中位数为 偶数 的数字的个数。 示例 1: 输入:nums = [12, ...
分类:
其他好文 时间:
2020-04-03 15:13:15
阅读次数:
92
一、前言 Redis 提供了5种数据类型:String(字符串)、Hash(哈希)、List(列表)、Set(集合)、Zset(有序集合),理解每种数据类型的特点对于redis的开发和运维非常重要。 ![Redis五种数据类型][2] Redis 中的 list 是我们经常使用到的一种数据类型,根据 ...
分类:
其他好文 时间:
2020-04-02 17:29:28
阅读次数:
81
json 提取器各字段说明: Variable names:保存的变量名,后面使用${Variable names}引用 JSON Path expressions:调试通过的json path表达式 Match Numbers:匹配数字(0代表随机提取,1代表提取第一个,-1代表提取所有) Def ...
分类:
Web程序 时间:
2020-04-02 16:05:49
阅读次数:
331