1 //第一个答案2(5+10) 第二个 3(3+4+5) 2 //令 sum[i]=a0+a1+...+ai, as+...+a(t-1)>=S 3 //有 as+a(s+1)+...+a(t-1)=sum[t]-sum[s] 4 //则 ai+...+an=sum[n]-sum[i]>=S 5 ...
分类:
其他好文 时间:
2020-01-21 21:45:47
阅读次数:
75
//input template#include<bits/stdc++.h> using namespace std; int solve() { int n,s; cin>>n>>s; vector<int> tri(n); for(int i=0;i<n;i++) { cin>>tri[i]; ...
分类:
其他好文 时间:
2020-01-21 21:34:27
阅读次数:
71
一、介绍 内容 将接触现代 NLP 技术的基础:词向量技术。 第一个是构建一个简单的 N Gram 语言模型,它可以根据 N 个历史词汇预测下一个单词,从而得到每一个单词的向量表示。 第二个将接触到现代词向量技术常用的模型 Word2Vec。在实验中将以小说《三体》为例,展示了小语料在 Word2V ...
分类:
其他好文 时间:
2020-01-21 18:33:23
阅读次数:
133
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1024 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 #include<cmath> 5 #include<cstring> ...
分类:
其他好文 时间:
2020-01-21 16:33:32
阅读次数:
72
DetectionOutput算子 本文基本结构:首先介绍detection output 这一层的基本理解,之后给出ssd所有代码的详细注释,最后给出caffe中该层各个参数的定义和默认值。 detection out layer是ssd网络最后一层,用于选框整合预、预选框偏移以及得分三项结果,最 ...
分类:
其他好文 时间:
2020-01-21 16:21:12
阅读次数:
180
题解 模拟水题。 代码 #include<bits/stdc++.h> using namespace std; struct node { string name; int final_rank,loc_num,loc_rank,grade; node(string name,int loc_nu ...
分类:
其他好文 时间:
2020-01-21 13:31:06
阅读次数:
63
高精度的运算主要依靠动态数组vector和字符串实现对每一位数字的运算. 1.高精度加法 #include <iostream> #include <algorithm> #include <vector> using namespace std; vector<int> add(vector<in ...
分类:
其他好文 时间:
2020-01-21 13:16:19
阅读次数:
69
c++中的万能头文件包含了几乎全部的c++头文件,引用方法如下: #include <bits/stdc++.h> 这样就可以代替下面的一大堆头文件了. #include <iostream> #include <cstdio> #include <fstream> #include <algori ...
分类:
编程语言 时间:
2020-01-21 00:55:12
阅读次数:
77
B - 人见人爱A-B 参加过上个月月赛的同学一定还记得其中的一个最简单的题目,就是{A}+{B},那个题目求的是两个集合的并集,今天我们这个A-B求的是两个集合的差,就是做集合的减法运算。(当然,大家都知道集合的定义,就是同一个集合中不会有两个相同的元素,这里还是提醒大家一下)呵呵,很简单吧? I ...
分类:
其他好文 时间:
2020-01-21 00:54:12
阅读次数:
94
线性分类器:通过线性映射,将数据分到对应的类别中 ①线性函数:f(xi?, W, b)= W * xi ?+ b W为权值(weights),b为偏移值(bias vector),xi为数据 假设每个图像数据被拉长为一个长度为D的列向量,其大小为[D x 1];W是大小为[K x D]的矩阵,b是大 ...
分类:
其他好文 时间:
2020-01-20 22:24:09
阅读次数:
71