上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 41 下一页
摘要: 尺选法。 没有删除掉freopen和fclose,WA,然后检查了一个小时,但是我是注释掉了它们的啊,不解。//188k, 0ms#include using namespace std;const int MAX_N = 10016;int x;bool is_pri[MAX_N... 阅读全文
posted @ 2016-11-15 14:33 StevenLuke 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 二分搜索//956k, 79ms#include #include #include using namespace std;const int MAX_N = 100005;int t, n, s;int arr[MAX_N], sum[MAX_N];void solve() {... 阅读全文
posted @ 2016-11-15 12:49 StevenLuke 阅读(135) 评论(0) 推荐(0) 编辑
摘要: chapter1Y=b+∑ni=0Wx 举例:对于识别图片来说,训练的过程就是调整权重 W 的过程,调整 W 的过程是给特征信息大的像素点分配更高的权重、给特征信息小的像素点分配更低权重的过程。非监督学习被机器学习界忽视了,它的两个作用是: 1、聚类 2、为输入数据提供一个... 阅读全文
posted @ 2016-11-14 17:20 StevenLuke 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 简单的并查集。//188k, 1032ms#include using namespace std;const int MAX_N = 1005;struct Point { int x; int y;};int n, d;int par[MAX_N], rank[MA... 阅读全文
posted @ 2016-11-14 15:33 StevenLuke 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 并查集。 用一个opposite数组保存一个人a的对立人。对于输入的一个人b和c,只要判断b和opposite[c]是否是一组就好了。 也可以不用opposite数组,把并查集开到2倍的大小,用前n个保存数据,使用后n个作为opposite,一样的。#include using n... 阅读全文
posted @ 2016-11-14 14:50 StevenLuke 阅读(123) 评论(0) 推荐(0) 编辑
摘要: //200k, 32ms#include #include #include using namespace std;const int MAX_M = 10005;const int MAX_N = 20;const double EPS = 1e-10;double add(d... 阅读全文
posted @ 2016-11-13 14:52 StevenLuke 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 对重量较大的先碰,可以对其多次sqrt,使得最后的结果最小。 可耻的标为原创。//168k, 0ms#include #include #include using namespace std;const int MAX_N = 105;int n;double arr[MAX_N... 阅读全文
posted @ 2016-11-11 16:20 StevenLuke 阅读(148) 评论(0) 推荐(0) 编辑
摘要: //转载请注明出处:優YoU //http://blog.csdn.net/lyy289065406/article/details/6674366 //Memory Time //248K 32MS #includeusing namespace std;int max(i... 阅读全文
posted @ 2016-11-11 15:56 StevenLuke 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 可耻的标为原创。 贪心策略是维持每周的最低单位成本,每周可能用上周剩下的,也可能生产新的。于是该周单位成本可能为上一周的单位成本加上储存费,也可能为该周的单位成本。#include using namespace std;int n, s, c, y;int main() { ... 阅读全文
posted @ 2016-11-11 14:41 StevenLuke 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 准确率指的是“所有分类正确的样本数/所有样本” 精确率是“特定类分对的样本数/所有预测为特定类的样本数” 一定要认真啊,不然–> 阅读全文
posted @ 2016-11-10 14:45 StevenLuke 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 41 下一页