1 2 3 4 5 ··· 12 下一页
摘要: 本文使用的是kibana进行可视化,win10,python3.8(使用pycharm) 1.pycharm中进行python和es的链接 from elasticsearch import Elasticsearch es=Elasticsearch("http://localhost:9200" 阅读全文
posted @ 2023-09-13 18:43 bonel 阅读(114) 评论(0) 推荐(0) 编辑
摘要: (数字图像处理课程实验整理) 1、Matlab基本操作 1.1 清除命令窗口的显示 1.2 保存矩阵到指定文件 1.3 清除变量及其存储 1.4 读入文件 1.5 关于矩阵的一些命令 1.6 Matlab的一些常用命令 1.7 一些注意事项 2.图像处理基本操作 2.1 图像处理工具箱 2.2 图像 阅读全文
posted @ 2022-06-06 21:10 bonel 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Problem - A - Codeforces 见代码: #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main( 阅读全文
posted @ 2022-04-18 21:09 bonel 阅读(29) 评论(0) 推荐(0) 编辑
摘要: Problem - A - Codeforces 说明:直接输出n-3,1,1,1即可 代码: #include<iostream> #include<algorithm> #include<cstdio> #include<cmath> #include<cstring> using namesp 阅读全文
posted @ 2022-04-12 21:27 bonel 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Problem - A - Codeforces 说明:反正是要 最后的总和,那么肯定是在ai,ai+1,bi,bi+1四个数中最小的数和最小的数在一起,归根结底就是ab数组对应位置的上,小的数在a数组,大的数在b数组,如果不满足就交换位置 代码: #include<iostream> #inclu 阅读全文
posted @ 2022-04-12 17:01 bonel 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 思路:没想到的事可以处理我们需要的那部分,也就是存入朋友圈人数小于等于1的人,反向思维 代码: #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> #include<set 阅读全文
posted @ 2022-04-11 15:16 bonel 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1.回归: https://www.cnblogs.com/chenqionghe/p/12593438.html 回归简单来说就是:越来越接近期望值,回归事务本质的过程 带有回归两字的解决办法不一定是解决回归问题,逻辑回归解决的是分类问题 2.最大似然估计: https://zhuanlan.zh 阅读全文
posted @ 2022-03-21 09:41 bonel 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 1.1211. 蚂蚁感冒 - AcWing题库 思路:既然碰到就会传染而且是相同速率运动,那么我们就可以看作是碰撞以后不掉头;那么不管是第一只蚂蚁向哪个方向运动,只要是它左边的蚂蚁向右运动,它右边的蚂蚁向左运动,就可以被感染。那么结果就是ans=left+right+1,left是左边的蚂蚁向右运动 阅读全文
posted @ 2022-03-15 21:25 bonel 阅读(39) 评论(0) 推荐(0) 编辑
摘要: C - Collision 2 Editorial 主要是学会unordered_map的一些用法: #include <iostream> #include <vector> #include <unordered_map> #include <algorithm> #define x first 阅读全文
posted @ 2022-03-13 16:52 bonel 阅读(59) 评论(0) 推荐(0) 编辑
摘要: //求 a^b%1000000007 long c = 1000000007; public long divide(long a, long b) { a %= c; long res = 1; for (; b != 0; b /= 2) { if (b % 2 == 1) res = (res 阅读全文
posted @ 2022-03-08 14:50 bonel 阅读(8) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 12 下一页