上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: #include <bits/stdc++.h> #define int long long using namespace std; const int N=1e6+10,mod=1e9+7; string s; int n,t,a[N],f[N],res,num,ans,m; bool vis[ 阅读全文
posted @ 2023-07-30 01:49 o-Sakurajimamai-o 阅读(25) 评论(0) 推荐(0)
摘要: # 多层感知机 # 获取数据 import d2lzh from mxnet import autograd batch_size = 256 train_data, test_data = d2lzh.load_data_fashion_mnist(batch_size) # 读入数据 from 阅读全文
posted @ 2023-07-29 17:02 o-Sakurajimamai-o 阅读(22) 评论(0) 推荐(0)
摘要: # 模型选择 欠拟合与过拟合 # 创建数据集 from mxnet import autograd from mxnet import ndarray as nd from mxnet import gluon num_train = 100 num_tset = 100 true_w = [1.2 阅读全文
posted @ 2023-07-29 17:02 o-Sakurajimamai-o 阅读(33) 评论(0) 推荐(0)
摘要: # [TJOI2007] 线段 ## 题目描述 在一个 $n \times n$ 的平面上,在每一行中有一条线段,第 $i$ 行的线段的左端点是$(i, L_{i})$,右端点是$(i, R_{i})$。 你从 $(1,1)$ 点出发,要求沿途走过所有的线段,最终到达 $(n,n)$ 点,且所走的路 阅读全文
posted @ 2023-07-29 15:14 o-Sakurajimamai-o 阅读(20) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define int long long using namespace std; const int N=1e6+10,mod=80112002; int e[N],ne[N],idx,f[N],h[N],n,m,a,b,res; bool vis 阅读全文
posted @ 2023-07-27 23:45 o-Sakurajimamai-o 阅读(16) 评论(0) 推荐(0)
摘要: # 多类->线性回归 from mxnet import gluon from mxnet import ndarray as nd import matplotlib.pyplot as plt def transform(data, label): return data.astype('flo 阅读全文
posted @ 2023-07-27 16:14 o-Sakurajimamai-o 阅读(48) 评论(0) 推荐(0)
摘要: Tracking Segments You are given an array $ a $ consisting of $ n $ zeros. You are also given a set of $ m $ not necessarily different segments. Each s 阅读全文
posted @ 2023-07-27 11:19 o-Sakurajimamai-o 阅读(56) 评论(0) 推荐(0)
摘要: # 数据结构,矩阵 # http://zh.gluon.ai/chapter_prerequisite/ndarray.html from mxnet import ndarray as nd print(nd.zeros((3, 4))) # 创建3x4的0矩阵 x = nd.ones((3, 4 阅读全文
posted @ 2023-07-26 13:23 o-Sakurajimamai-o 阅读(29) 评论(0) 推荐(0)
摘要: # Diverse Substrings ## 题面翻译 定义一个数字串是**多变的**当且仅当其中所有数字的重复次数均不超过其中不同数字的种类数。 给定一个由 $0$ 到 $9$ 组成的长为 $n$ 的数字串 $s$,求其不同的**多变的**子串 $s_{[l,r]}$ 的个数。 ## 题目描述 阅读全文
posted @ 2023-07-24 11:20 o-Sakurajimamai-o 阅读(21) 评论(0) 推荐(0)
摘要: 数字三角形 #include <bits/stdc++.h> //#define int long long using namespace std; const int N=1e4+10,mod=1e9+7; string s; int n,t,a[N][N],f[N][N],res,num,an 阅读全文
posted @ 2023-07-22 19:49 o-Sakurajimamai-o 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
-- --