参考文献:
[GDL16] Gilad-Bachrach R, Dowlin N, Laine K, et al. Cryptonets: Applying neural networks to encrypted data with high throughput and accuracy[C]//International conference on machine learning. PMLR, 2016: 201-210.[HTG17] Hesamifard E, T…
思路:没用完全背包优化的动态规划只能O(n^3)只能过 40%
#include<bits/stdc.h>
using namespace std;
const int N 5e37;
const int mod 1e97;
string s;
int len;
int num[N],dp[N][N];int solve(int need,int flag){memset(num, 0, sizeof(num));memset(…