- 博客(3)
- 收藏
- 关注
原创 天天爱跑步
18年9月24日至18年9月30日 题目1:天天爱跑步 题目简述 见题面 做法简述 树上差分 + lct 乱搞 过关状态 TLE 代码 // luogu-judger-enable-o2 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 6e5 + 7; int ...
2018-09-26 21:41:37 408
原创 小结
每周小结 18年9月24日至18年9月30日 题目1:纽约 题目简述 见题面 做法简述 二分 过关状态 WA->AC 代码 #include <bits/stdc++.h> using namespace std; const int N = 5005; multiset<int> s; int n, a[N], R; bool check(int
2018-09-25 21:13:07 172
原创 T39280
T39280 k-NN 题目描述 k -NN 是机器学习中常用的算法,其简化版的流程如下: 给出nnn个点(xi,yi)(xi,yi)(x_i,y_i),每个点有一个颜色,为红色或黑色。现在给出一个询问位置(x,y)(x,y)(x,y),这个位置的颜色将由离它最近的kkk个点决定:如果离它最近的kkk个点中,红色点的个数大于等于黑色点的个数,那么这个位置为红色,否则为黑色。 Bob现在...
2018-08-10 08:26:22 103
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人