BTH004 - Laboratory assignment 1In this laboratory assignment you should design and implement algorithmsfor the multiple knapsack problem. The assignm ...
分类:
其他好文 时间:
2019-10-27 20:58:40
阅读次数:
134
/* 这道题目可以暴力解答:对1~n的每个数进行从低位到高位分析 一旦这个数字num出现,a[num]++即可 第二种方法: 由0,1,...9组成的所有n位数,从n个0到n个9共10^n个数,0,1,...9 出现的次数一样设为a(n),那么易得: a(n)=10a(n-1)+10^(n-1) (... ...
分类:
其他好文 时间:
2019-10-27 16:58:00
阅读次数:
75
算法原理: 设正整数 𝒎𝟏,𝒎𝟐,?,𝒎𝒌 两两互素,对任意整数 𝒂𝟏,𝒂𝟐,?,𝒂𝒌,一次同余方程组 𝒙 ≡ 𝒂𝟏 (𝒎𝒐𝒅 𝒎𝟏) 𝒙 ≡ 𝒂𝟐 (𝒎𝒐𝒅 𝒎 ...
分类:
其他好文 时间:
2019-10-27 14:58:12
阅读次数:
119
package main import ( "fmt" "math" ) func main() { /*加减乘除,求余*/ fmt.Println("5+3=", 5+3) fmt.Println("5-3=", 5-3) fmt.Println("5*3=", 5*3) fmt.Println(... ...
分类:
其他好文 时间:
2019-10-26 20:40:50
阅读次数:
139
BitCoin BitCoin是最早、也是现网运行区块链最成功的一个开源项目,核心技术框架采用C++开发,共识算法采用PoW,每秒交易量(TPS)为不多于7笔,开源许可协议为MIT。 官方编程语言:C++ 开源许可协议:MIT 开源项目地址:https://github.com/bitcoin/bi ...
分类:
其他好文 时间:
2019-10-26 14:56:52
阅读次数:
225
一、安装 vue-cli 1、首先需要安装node和npm 不做过多讲解,可以参考 https://www.cnblogs.com/kellyPan/p/9653609.html 安装 2、使用npm安装npm-cli 打开要建项目所在的文件夹,点击空白处按住 shift + 鼠标右键,打开 Pow ...
分类:
Web程序 时间:
2019-10-25 15:02:08
阅读次数:
117
一 . Windows 环境 1 . choco 安装 Dart SDK 建议直接使用 安装,关于 如何使用可以参照 https://chocolatey.org/ 官方文档地址:https://dart.dev/get dart install using chocolatey 安装稳定版本: 安 ...
分类:
其他好文 时间:
2019-10-24 18:21:18
阅读次数:
91
加减乘除 NumPy 算术函数包含简单的加减乘除: add(),subtract(),multiply() 和 divide()。 注意:数组必须具有相同的形状或符合数组广播规则。 输出结果为: 此外 Numpy 也包含了其他重要的算术函数。 倒数 numpy.reciprocal() 函数返回参数 ...
分类:
其他好文 时间:
2019-10-24 00:34:14
阅读次数:
85
组合数学什么的,最有趣了呢…… [51nod 1251] Fox序列的数量 题意 求满足以下条件的序列数目: 1. 序列长度为 $ n $ ,每个元素都属于 $ [1,m] \cap Z $ ; 2. 这个序列单调不降; 3. 这个序列出现次数最多的数是唯一的。 数据范围: $ 1≤n,m≤1000 ...
分类:
其他好文 时间:
2019-10-23 22:19:51
阅读次数:
91
首先对于$n define il inline define rg register using namespace std; typedef long long ll; const int mod = 1e9 + 7, O = 55; ll n; int m, k, res, ans, sta[O ...
分类:
其他好文 时间:
2019-10-23 00:03:30
阅读次数:
109