tenzing 1842f tree and

[CF1830D] Mex Tree

## 题目描述 You are given a tree with $ n $ nodes. For each node, you either color it in $ 0 $ or $ 1 $ . The value of a path $ (u,v) $ is equal to the ME ......
1830D 1830 Tree Mex CF

Position-Enhanced and Time-aware Graph Convolutional Network for Sequential Recommendations

# Position-Enhanced and Time-aware Graph Convolutional Network for Sequential Recommendations [TOC] > [Huang L., Ma Y., Liu Y., Du B., Wang S. and Li ......

Scheduling and Resource Allocation

Module aims Real-life problems arising in computer science, computational management and economics often involve deciding the best way to use a given ......
Scheduling Allocation Resource and

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

npx -p npm@6 npm i 参考:https://blog.csdn.net/weixin_40461281/article/details/115543024 ......
ERESOLVE dependency npm ERR resolve

[AIGC] a brief summary for this week, replica and localGPT

In this week, I experienced two main projects, replica and localGPT. ## replica demo: ![image](https://img2023.cnblogs.com/blog/3007012/202309/3007012 ......
localGPT summary replica brief AIGC

关于nvim-tree的简单设置

## 前言 最近临近开学,为了方便在课堂上随手写一点作业,我开始对neovim进行配置,尽量让它满足一个类Ide的功能,那么必不可少的就是文件树的功能,那么这里,我就来简单记录一下nvim-tree的配置过程。这里我们使用packer插件管理器,对插件进行安装。 ##需求 **neovim >=0. ......
nvim-tree nvim tree

2023.9.3 hpz's problems about trees

#### P2664 树上游戏 对于颜色 $c$,如果我们把颜色 $c$ 的点全部都删除,那么我们会得到若干个连通块。 连通块里面的路径是没有贡献的,连通块联通外面的路径都会有这个颜色做了贡献。 对于一个连通块,其里面所有点都能有 $n-siz(连通块)$ 的贡献。 如果我们每次枚举颜色,再计算连通 ......
problems about trees 2023 hpz

C#数据结构之Tree

``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AlgorithmsDemo { pub ......
数据结构 结构 数据 Tree

CF1848B Vika and the Bridge 题解

# CF1848B Vika and the Bridge 题解 ## 题目大意 ~~给个题目传送门吧,感觉题意已经很清楚了~~ [题目传送门](https://www.luogu.com.cn/problem/CF1848B) ## 分析 (~~我不会告诉你我第一眼看过去是二分~~) 因为我们只能 ......
题解 Bridge 1848B 1848 Vika

Photometry and Radiometry

Photometry(光度学):度量感知量 Radiometry(辐射度量学):度量物理量 Radiometric | Symbol | Unit | Photometric | Symbol | Unit : : | : : | : : | : : | : : | : : 辐射能量 Radiant ......
Photometry Radiometry and

双指针(9/1 and9/2 )

1、复习了前缀和,差分(一维和二维) 2、双指针 //双指针核心思想就是优化时间 for() for()->O(n^2) >优化成O(n) /*for(i=0,j=0;i<n;i++) { while(j<i&&check(i,j)) j++; //每道题的逻辑 }*/ #include <iost ......
指针 and9 and

443A - Anton and Letters

## A. Anton and Letters https://codeforces.com/problemset/problem/443/A ##### Recently, Anton has found a set. The set consists of small English lette ......
Letters Anton 443A 443 and

C. Vika and Price Tags

C. Vika and Price Tags Vika came to her favorite cosmetics store "Golden Pear". She noticed that the prices of $n$ items have changed since her last v ......
Price Vika Tags and

Binary Tree Inorder Traversal

Source Given a binary tree, return the inorder traversal of its nodes' values. Example Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,3,2]. Challeng ......
Traversal Inorder Binary Tree

CF797F Mice and Holes 题解

## Description 有一天 Masha 回到家,发现有 $n$ 只老鼠在它公寓的走廊上,她大声呼叫,所以老鼠们都跑进了走廊的洞中。 这个走廊可以用一个数轴来表示,上面有 $n$ 只老鼠和 $m$ 个老鼠洞。第 $i$ 只老鼠有一个坐标 $x_i$ ,第 $j$ 个洞有一个坐标 $y_j$ ......
题解 Holes 797F Mice 797

Q-learning and RL implementation

Aim: Train a model to properly play vintage video games... Deep Q-learning Algo~ Very short Brief of Notations: {A,pi(Policy),Q(quality of action-at a ......
implementation Q-learning learning and RL

CF765E Tree Folding

[题目链接](https://codeforces.com/problemset/problem/765/E "题目链接") ## 题意 给出一颗无根树,你可以钦定一个根,并进行若干次下述操作: * 选择一个点 $v$,以及 $v$ 延伸出去的两条长度相同的路径(两条路径没有重叠的边)。删去其中任意 ......
Folding 765E Tree 765 CF

go: json marshal and unmarshal

引用: https://bluehive.medium.com/golang-json-marshal-a-struct-with-pointers-2a362d0543f5 1. Golang JSON Marshal a Struct With Pointers: a. Always name ......
unmarshal marshal json and go

Python中while的and和or

while A and B: 同时满足A和B条件while A or B:满足A或B任意一条 以1768. 交替合并字符串官方答案为启发,以前没意识到while还可以用and和or。 其实无论用什么,只要看最后的结果是True或False class Solution: def mergeAlter ......
Python while and

对于element的el-tree拖拽最下级子行,会有这行上下行的重影解决方案

例如提的四级这一行,但是提起来后有上下两行的字 解决思路 .tree-row[data-v-a9ac1138] { height: 30px; overflow: hidden; } 找到这行,给这行限制高度,然后隐藏 ......
重影 下级 上下 解决方案 element

[LeetCode] 2240. Number of Ways to Buy Pens and Pencils

You are given an integer total indicating the amount of money you have. You are also given two integers cost1 and cost2 indicating the price of a pen ......
LeetCode Pencils Number 2240 Ways

E. Josuke and Complete Graph 数论分块

题意:很简单,给你l,r,让你输出对于这个区间中任意两个不同的数字的gcd组成的set的大小是多大。至于题面,我只能说,聪明人早就看出来那些图啊边啊啥的都是唬人的。 做法:显然我们是要去枚举的,但是我们不能去枚举选的那两个数字。所以我们选择枚举gcd有哪些。这些gcd又分两种: 第一种,假如一个数字 ......
数论 Complete Josuke Graph and

CF477E Dreamoon and Notepad

# CF477E Dreamoon and Notepad key:分类讨论;贪心;拆贡献、放缩等思想。 ## Solution ~~简要~~ 写一下分类讨论,防止写代码的时候脑子不清晰。参考了 [这篇](https://www.luogu.com.cn/blog/_post/567771) 题解。 ......
Dreamoon Notepad 477E 477 and

What's the difference between Async Await and Promise in JavaScript All In One

# What's the difference between Async Await and Promise in JavaScript All In One > `Async` vs `Promise` ## demos --> ## (🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明 ......
JavaScript difference Promise between Async

CF1174E Ehab and the Expected GCD Problem 题解

## 题意 对于一个排列 $p$,定义 $g$ 为 $p$ 的前缀最大公约数序列,即 $g_i = \gcd\limits_{j = 1}^{i} p_j$。定义 $f(p)$ 为 $g$ 的元素种类数。 给定 $n$,求长度为 $n$ 的且使得 $f(p)$ 取最大值的排列个数,对 $10^9 + ......
题解 Expected Problem 1174E 1174

【1305C】Kuroni and Impossible Calculation(数学)

**题目大意** *** ```cpp #include using namespace std; typedef long long ll; ll n,m,a[200000+10]; int main(){ cin >> n >> m; for(ll i=1;i> a[i]; if(n<=m){ ......
Calculation Impossible 数学 Kuroni 1305C

CF449D Jzzhu and Numbers

[原题链接](https://codeforces.com/problemset/problem/449/D "原题链接") 首先我们让 $c_s$ 表示有多少 $a_i$ 是 $s$ 的超集,那么有:取与后是 $s$ 的超集的集合个数 $f_s=2^{c_i}$。 再让 $g_s$ 表示有多少集合 ......
Numbers Jzzhu 449D 449 and

SLAMesh论文及代码阅读与思考<二>Real-time LiDAR Simultaneous Localization and Meshing

# 前言 由于之前安装cuda、ros、boost版本等一些问题,环境配置竟然花了两天时间,期间遇到各种版本冲突,最后把环境重新配置到最直接的版本即可,cuda暂时就先卸载了。 在整个代码中,一个鲜明的特色是作者使用一个Log类来做整个pipeline的信息管理,之前用的比较少,看代码才发现通过日志 ......

CF1864B Swap and Reverse

### 题目大意 给定一个长度为 $n$ 的字符串 $s$ 和一个整数 $k$。 你可以进行若干次操作: - 选取一个 $i$($1\le i\le n-2$),交换 $a_i$ 和 $a_{i+2}$ - 选取一个 $i$($1\le i\le n-k+1$),翻转区间 $s_{[i,i+k-1] ......
Reverse 1864B 1864 Swap and

SLAMesh论文及代码阅读与思考<一>Real-time LiDAR Simultaneous Localization and Meshing

# 前言 从SLAM建图到SLAM建模,是近年来这一领域发展的重要趋势之一。在此之前,环境三维模型的构建的一个重要标签就是实时性不足的问题,SLAMesh的提出,在这一问题上迈出了重要的一步,创新性地将高斯过程引入到环境信息的建模与预测任务之中,使得建模过程避免了对mesh顶点的搜索与优化,通过有序 ......