03 2022 档案

摘要:1.回归: https://www.cnblogs.com/chenqionghe/p/12593438.html 回归简单来说就是:越来越接近期望值,回归事务本质的过程 带有回归两字的解决办法不一定是解决回归问题,逻辑回归解决的是分类问题 2.最大似然估计: https://zhuanlan.zh 阅读全文
posted @ 2022-03-21 09:41 bonel 阅读(660) 评论(0) 推荐(0) 编辑
摘要:1.1211. 蚂蚁感冒 - AcWing题库 思路:既然碰到就会传染而且是相同速率运动,那么我们就可以看作是碰撞以后不掉头;那么不管是第一只蚂蚁向哪个方向运动,只要是它左边的蚂蚁向右运动,它右边的蚂蚁向左运动,就可以被感染。那么结果就是ans=left+right+1,left是左边的蚂蚁向右运动 阅读全文
posted @ 2022-03-15 21:25 bonel 阅读(57) 评论(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 阅读(66) 评论(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 阅读(11) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示