一:vanilla RNN 使用机器学习技术处理输入为基于时间的序列或者可以转化为基于时间的序列的问题时,我们可以对每个时间步采用递归公式,如下,We can process a sequence of vector x by applying a recurrence formula at every time step: ht = fW( ht-1,xt ) 其中xt 是在第t个时间步的输入(input vector at time step t):ht 是新状态量(new state),…
https://www.bnuoj.com/v3/problem_show.php?pid=52781 [AC] #include<bits/stdc++.h> using namespace std; typedef long long ll; ; char str[maxn]; int l; int a[maxn]; int b[maxn]; int n,m; void init() { memset(a,-,sizeof(a)); memset(b,-,sizeof(b)); ; ;i&…
题目链接:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=34985 We define a kind of strings as elegant string: among all the substrings of an elegant string, none of them is a permutation of "0, 1,…, k". Let function(n, k) be the number of elegant s…