上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
代码: Read More
posted @ 2019-07-21 22:21 A-inspire Views(135) Comments(0) Diggs(0)
代码: //0 1 背包:从大到小枚举 //完全背包:从小到大枚举 比较好理解的一种方式: Read More
posted @ 2019-07-20 22:15 A-inspire Views(162) Comments(0) Diggs(0)
代码: 改进 Read More
posted @ 2019-07-18 22:28 A-inspire Views(185) Comments(0) Diggs(0)
代码: Read More
posted @ 2019-07-09 16:58 A-inspire Views(192) Comments(0) Diggs(0)
代码: Read More
posted @ 2019-07-09 16:19 A-inspire Views(375) Comments(0) Diggs(0)
该文被密码保护。 Read More
posted @ 2019-07-09 15:58 A-inspire Views(2) Comments(0) Diggs(0)
求 aa 乘 bb 对 pp 取模的值。 输入格式 第一行输入整数aa,第二行输入整数bb,第三行输入整数pp。 输出格式 输出一个整数,表示a*b mod p的值。 数据范围 输入样例: 输出样例: Read More
posted @ 2019-07-09 10:59 A-inspire Views(125) Comments(0) Diggs(0)
快速幂算法——可迅速求出a^b。其主要理论依据如下: 1,当b为偶数时,a^b可以转为a^2的b/2次方。 2,当b为奇数时,a^b可以转为a^2的b/2次方,再乘以a。 //简单来说就是把b当成2进制形式,然后累加;// 2*7=2*(1*2^0+1*2^1+1*2^2)=2*1*2^0+2*1* Read More
posted @ 2019-07-09 10:43 A-inspire Views(520) Comments(0) Diggs(0)
花了一个周读了一下这篇论文,是最近接受在IJCAI上的一篇关于股票涨跌预测的模型,驳斥了传统方法基于静态输入的局限性,原因是由于股票的价格会在市场内随着时间不短变化,基于价格的特征实际上是随机变量。方法是采用对抗训练,在训练过程中加入随机噪声模拟股票在实际中收外界干扰的过程,模型是采用常规的深度学习 Read More
posted @ 2019-07-08 11:39 A-inspire Views(834) Comments(0) Diggs(0)
代码: 定一个res存储结果C++每秒执行107—— 108,如果直接用循环会超时,aaaa… 若个数是奇数等同于 a * (a a a…)aaaa… 若个数是偶数等同于 a*a * (a *a *a…) 相乘的个数为奇数的时候 直接将存储的结果res * a相乘的个数为偶数的时候 将a = a * Read More
posted @ 2019-07-07 11:53 A-inspire Views(146) Comments(0) Diggs(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页