tenzing 1842f tree and

[Typescript] Don't compare generic function, instead compare function arguments and return type

Typescript has its problem that when you try to compare generic function to a function signature, you will run into issue. Because for one function, i ......

Unveiling the Power of Diagnostic Tools: Cat Caterpillar ET, Volvo Vocom II Interface, JLR DoIP VCI, WABCO Diagnostic Kit, and GM Tech 2

In the realm of automotive diagnostics, the right tools can make all the difference. Whether you're a professional mechanic or an avid car enthusiast, ......

Tree Distances I

# Tree Distances I ## 思路 先考虑只算节点 $1$ 的答案,我们发现如果要每个节点都这么算一次的话,绝对会![image](https://img2023.cnblogs.com/blog/2903414/202308/2903414-20230815201329562-731 ......
Distances Tree

card,swallow-and-electron-cloud

贺卡,燕子和电子云 Created: 2023-07-16T17:52+08:00 Published: 2023-08-15T17:36+08:00 Categories: Fragment [toc] # 贺卡 翻日记,看到高三时候班级举行过随机互赠贺卡的活动,对于这件事我只有一点点模糊的印象, ......

CF1513D GCD and MST 题解

## 题面 对于一个序列,若有 $(i,j)(i typedef long long valueType; typedef std::vector ValueVector; typedef std::pair ValuePair; typedef std::vector PairVector; ty ......
题解 1513D 1513 GCD and

CF1859D Andrey and Escape from Capygrad 题解

## 思路 思考贪心,容易得出我们只有不断往右跳跃才能走得更远。 所以,对于一个线段 $[l, r]$ 可以轻易到达 $[a, b]$,那么只对 $[l, b]$ 有用,这些点都可以跳到 $b$,$[b + 1, r]$ 这一部分不能往回跳,所以不用考虑。 那么我们就可以把这些线段都当成 $[l, ......
题解 Capygrad Andrey Escape 1859D

「题解注释」CF1707C DFS Trees

[题解 CF1707C【DFS Trees】 - rui_er 的博客 - 洛谷博客 (luogu.com.cn)](https://www.luogu.com.cn/blog/ak-ioi/solution-cf1707c) 耗时:一个小时 代码注释: ```cpp // Problem: C. ......
题解 注释 1707C Trees 1707

Go - Keywords, Operators and punctuation

Keywords The following keywords are reserved and may not be used as identifiers. break default func interface select case defer go map struct chan els ......
punctuation Operators Keywords and Go

"Don't be shy. Speak English loudly and crazily!"

"Don't be shy. Speak English loudly and crazily!" 俞敏洪犀利点评马云、王石、刘强东、雷军英语水平 俞敏洪:马云8岁学英语,考上杭师范读专科,而我在北大读本科! 李阳、马云、俞敏洪,这三个中国最著名的英语老师,只有李阳仍坚守在一线。 是啊,当马云再次登 ......
quot English crazily loudly Speak

Codechef - Longest AND Subarray(位运算)

题目大意 给定一个正整数N,其序列为[1, 2, 3, ..., N],找到一个长度最大的连续子列,使得其所有元素取与运算的结果为正(最终输出只需要输出最大长度即可)。 思路 刚开始可能并不好注意到,可以举一些小的样例来找规律。比如2:1 & 2 = 0,不满足条件,所以只能取长度为1的数组[1]或 ......
Codechef Subarray Longest AND

PnP and Perspective Projection and Pose Computation

# PnP and Perspective Projection and Pose Computation *Review PnP problem from a computer graphics rendering view* 首先从一个 [StackExchange](https://compu ......
Perspective Computation Projection and Pose

Mongodb or and 查询

查询两个条件符合一个即可 { $or : [ { $and : [ { "Type" : "Unorganized" }, { "Tel" : "Procedure" }, { "Factor" : { "$ne" : { } } } ] }, { $and : [ { "Type" : "Orga ......
Mongodb and or

Git:Vscode提交报错Make sure you configure your "user.name" and "user.email" in git

使用VScode编辑代码后,Push到云端报错:Make sure you configure your "user.name" and "user.email" in git 解决步骤: 1.进入本地端的文件夹,右键Git Bash; 2.输入命令: $ git config --global u ......
quot user configure Vscode email

CaltechCS122 笔记:Assignment 1: NanoDB Set-Up and Storage Layer

# Assignment 1: NanoDB Set-Up and Storage Layer NanoDB 是加州理工大学 Caltech CS122 课程使用的教学数据库系统 ## buffer pool manager lab1 的第二部分是实现充分利用空间的 bpm,当前所给出的 bpm 代 ......
Assignment CaltechCS Storage 笔记 NanoDB

「解题报告」AGC064C Erase and Divide Game

第二次打 AGC,场上过了 C,还是很开心的。 而且是在一整天没碰 OI 的情况下。所以长时间 AFO 再回来打比赛会不会对 OI 有一定的 buff?有时候思维过度疲惫的情况下貌似打比赛脑子是真的转不动。 不过为啥 D 过的比 C 多啊,我觉得 C 很简单啊,基本没有任何转化,可能 AT 的这类计 ......
报告 Divide Erase 064C Game

UOI 2023 An Array And Addition Again

传送门:https://uoi2023-2.eolymp.io/problems/3 题目大纲: 给予一个整数 n 。 (n<=1e18) 你现在有一个数组 a, a 的所有号码为 0 除了 a[100] 为 1 你需要给一些指令, 每一个指令需要一个整数 s , 他会进行 d[s]+=d[s+1] ......
Addition Again Array 2023 UOI

D. Andrey and Escape from Capygrad

D. Andrey and Escape from Capygrad An incident occurred in Capygrad, the capital of Tyagoland, where all the capybaras in the city went crazy and star ......
Capygrad Andrey Escape from and

Data structure and algorithm-One

右边界左边界 函数式编程 传统的实现方式通常是将具体的功能代码直接写在方法内部。这样的实现方式对于固定的功能来说可能是足够的,但它的灵活性和复用性较低。每当需要不同的功能时,您需要编写新的方法或修改原有方法,这可能会导致代码的冗余和不易维护。 而函数式编程的优点在于它将函数本身作为参数传递,使得调用 ......
algorithm-One structure algorithm Data and

【翻译】为什么我们需要极限和无穷小?(Why Do We Need Limits and Infinitesimals?)

那么多数学课,没有任何上下文,就跳到极限,无穷小,非常小的数(T)。但是我们为什么要在乎呢?数学帮助我们模拟世界。我们可以把一个复杂的想法(一条蜿蜒的曲线)分解成更简单的部分(矩形): ![image](https://img2023.cnblogs.com/blog/2469253/202308/ ......
无穷小 Infinitesimals 极限 Limits Need

CF643F Bears and Juice

[题面传送门](https://www.luogu.com.cn/problem/CF643F) 感觉这个从信息的角度去考虑比较高妙。 首先取 $p=\min(p,n-1)$。 我们来考虑每个桶对应喝的熊,这样会有一个长度为 $n$ 的数组,假设有 $t$ 天,那么每个位置会写一个 $[1,t+1] ......
Bears Juice 643F 643 and

Binary Tree Preorder Traversal

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

【Oracle】SEGMENT SHRINK and Details. (Doc ID 242090.1)

``` PURPOSE In Oracle10g and onwards, we have the option to shrink a segment, which will help DBAs to manage the space in better way. This feature als ......
242090.1 Details SEGMENT Oracle 242090

[图论记录] CF1082G Petya and Graph

([题目传送门](https://www.luogu.com.cn/problem/CF1082G)) 一道最大权闭合子图的模板题 把所有点当作负权点,所有边当作正权点。 考虑一条边 $e=(x,y,z)$ 能选择的条件,当 $x,y$ 均被选择时就可以选,那对应到最大权闭合子图的模型中,就可以将 ......
1082G Petya Graph 1082 and

Striving for Simplicity and Performance in Off-Policy DRL: Output Normalization and Non-Uniform Sampling

![](https://img2023.cnblogs.com/blog/1428973/202308/1428973-20230812075327194-1111056360.png) **发表时间:**2020(ICML 2020) **文章要点:**这篇文章基于SAC做简单并且有效的改进来提升 ......

Behavior trees for AI: How they work

## 1. Behavior trees for AI: How they work This article is copied from https://www.gamedeveloper.com/programming/behavior-trees-for-ai-how-they-work#c ......
Behavior trees they work for

G. Vlad and the Mountains

G. Vlad and the Mountains Vlad decided to go on a trip to the mountains. He plans to move between $n$ mountains, some of which are connected by roads. ......
Mountains Vlad and the

C.Koxia and Number Theory goodbye2022

[Koxia and Number Theory 题目链接](https://codeforces.com/contest/1770/problem/C "Koxia and Number Theory") 分部考虑问题:1. $\gcd(a,a)=1$ 所以不能有两个相同的数字2. 从奇偶出发如果 ......
goodbye Number Theory Koxia 2022

and 树结构穿梭框

import React, { Component, useEffect, useState } from 'react'; import { Tree, Input, Button, Card } from 'antd'; // import requset from '@/utils/reque ......
结构 and

Python错误:This error originates from a subprocess, and is likely not a problem with pip.

问题描述: 最近把Python升级到了3.11,重新下载了一些模块,但下载安装pymssql的时候发生了如下报错: 解决办法: 原因分析:之前下载pymssql的时候是没有发生如上情况的,但当时用的Python版本是3.7、3.10,所以猜想是版本不兼容的问题。输入 pip install pyms ......
originates subprocess 错误 problem Python

dus on tree学习笔记

### 前言 dus on tree 就像其实就像是暴力,但是通过选择正确的顺序,使得暴力变得更加的快速。 ### 算法思路 查看题目 ``` 给出一颗 n 个节点的树,每个节点有一个颜色,询问你没个节点的子树中有多少中颜色。 ``` ......
笔记 tree dus on