原题目 "链接" 原代码来自 "attack" cpp include include define LL long long // define int long long using namespace std; const int MAXN = 3 1e5 + 10; const LL INF ...
分类:
其他好文 时间:
2019-06-01 21:52:50
阅读次数:
377
[TOC] Spatial signals Temporal signals Sequence Sequence embedding [b,seq_len,feature_len] 1个句子10个单词每个单词4个意思,[1,10,4] e.g. I like it. [b,100,1] [price ...
分类:
其他好文 时间:
2019-06-01 21:32:58
阅读次数:
238
用MobaXterm运行程序时报上面的错,解决方法: 点击setting -> X11里 将 RANDR 里的勾去掉后点击OK即可。 ...
分类:
其他好文 时间:
2019-06-01 21:32:22
阅读次数:
921
"POJ" 题意:给定一个长度为N($N include include include include define LL long long using namespace std; inline LL read(){ LL s=0,w=1;char ch=getchar(); while(ch ...
分类:
其他好文 时间:
2019-06-01 11:13:40
阅读次数:
112
# Problem_2.py """ Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms... ...
分类:
其他好文 时间:
2019-05-31 19:58:03
阅读次数:
112
Ugly Numbers UVA - 136 Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ...shows the ...
分类:
其他好文 时间:
2019-05-30 17:26:31
阅读次数:
118
IOI2005国集队论文上的例[神仙]题…… 具体论证看论文吧233 ...
分类:
其他好文 时间:
2019-05-30 16:16:15
阅读次数:
94
sequence 考虑长度<=x的方案数F(x),然后(F(x)-F(x-1))*x贡献到答案里 n平方的做法可以直接DP, 感觉有式子可言, 就推出式子:类似coat,每个长度为i的计算i次。 再容斥下: F是方案数,还是求: 枚举分成的段数,枚举多少个超过i进行容斥: 突破口:有个n-i*k-1 ...
分类:
其他好文 时间:
2019-05-28 09:37:18
阅读次数:
134
一、Attention与其他模型 1、LSTM、RNN的缺点:输入的Memory长度不能太长,否则参数会很多。 采用attention可以输入长Memory,参数不会变多。 2、Sequence to Sequence Learning : 输入和输出的句子长度可以不一样,常用来做句子翻译。 比如: ...
分类:
其他好文 时间:
2019-05-27 00:49:46
阅读次数:
164
Resize函数用于对PIL图像的预处理,它的包在: 使用如: 而Resize函数有两个参数, size : 获取输出图像的大小 interpolation : 插值,默认的 PIL.Image.BILINEAR, 一共有4中的插值方法 ...
分类:
其他好文 时间:
2019-05-26 16:09:34
阅读次数:
2657