approximation theory method 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

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

Further reading: Theory of computation

找了些:https://en.wikipedia.org/wiki/Theory_of_computation 提到的书籍: Textbooks aimed at computer scientists (There are many textbooks in this area; this lis ......
computation Further reading Theory of

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

[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顶点的搜索与优化,通过有序 ......

How to Disable Suspend and Hibernation Modes In Linux

参考:https://www.tecmint.com/disable-suspend-and-hibernation-in-linux/sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.targ ......
Hibernation Disable Suspend Modes Linux

【CF1395C】Boboniu and Bit Operations(贪心、位运算)

**题目大意:** 数组$a$长度为$n$,数组$b$长度为$m$,构造数组$c$满足$c[i]=a[i]\&b[j]$,求数组$c$按位或的和的最小值。 *** 设题目的答案为$ans$。 由于数组$a$和$b$的元素值小于$2^{9}$,所以数组$c$元素和$ans$在二进制表示下最多为$9$位 ......
Operations Boboniu 1395C 1395 Bit

hdu: Girls and Boyst

Problem Description the second year of the university somebody started a study on the romantic relations between the students. The relation “romantica ......
Girls Boyst hdu and

CFG file is missing and source table is found to have row versions报错原因分析

参考: https://docs.percona.com/percona-xtrabackup/8.0/error-message-instant.html https://dev.mysql.com/doc/refman/8.0/en/innodb-table-import.html https: ......
原因分析 versions 原因 missing source

软件测试|SQL AND和OR运算符解析

![在这里插入图片描述](https://img-blog.csdnimg.cn/ab23313af47443ef9013b89134fac33f.png) ### [获取更多技术资料,请点击!](https://ceshiren.com/t/topic/26026) ## 简介 在SQL(Stru ......
运算符 软件测试 软件 SQL AND

CF1864B Swap and Reverse 题解

## 题意 给定一个长度为 $n$ 的字符串 $s$ 和一个正整数 $k$,每次可以进行如下两种操作当中的一种(字符串下标从 $1$ 开始标号): - 选择 $i \in \left[1, n - 2\right]$ 并交换 $s_i$ 和 $s_{i + 2}$; - 选择 $i \in \lef ......
题解 Reverse 1864B 1864 Swap

A pure js Array reactive solution with Proxy and Reflect All In One

A pure js Array reactive solution with Proxy and Reflect All In One 纯 js 实现数组响应式 ......
reactive solution Reflect Array Proxy

SQL Injection and JDBC PreparedStatement Class

In "Java Tutorial", this is how the JDBC PreparedStatement class prevents SQL injection. However, the most important advantage of prepared statements ......
PreparedStatement Injection Class JDBC SQL

Codeforces Round 885 (Div. 2)D. Vika and Bonuses(数学)

题目链接:https://codeforces.com/problemset/problem/1848/D 题意: 给定正整数s和k; 你需要维护一个计数器C,并且进行k次操作,每次操作是一下俩种之一: 1:C = C + s; 2:s = s + s % 10; 输出k次后C的最大值,一开始C = ......
Codeforces Bonuses 数学 Round Vika

Android Installed Build Tools revision 34.0.0 is corrupted. Remove and install again using the SDK

前言ERROR: Installed Build Tools revision 34.0.0 is corrupted. Remove and install again using the SDK Manager.错误:已安装的生成工具修订版34.0.0已损坏。使用SDK管理器删除并重新安装。 上 ......
Installed corrupted revision Android install

CF1864B Swap and Reverse 题解

注意到交换操作,无法改变下标的奇偶性,因此只能通过考虑翻转操作改变。注意到如果 $i$ 是奇数,那么要令 $i+k-1$ 为偶数的话 $k$ 必须为偶数,若 $i$ 是偶数,要令 $i+k-1$ 是奇数的话,$k$ 也应为偶数,而 $k$ 为奇数的情况翻转了也无法改变奇偶性。 因此通过 $k$ 的奇 ......
题解 Reverse 1864B 1864 Swap

CF1862E Kolya and Movie Theatre 题解

先注意到我们娱乐值损耗的多少只与最后一场电影有关系,所以假设最后一场电影看的下标为 $k$,那么最后就要减去 $d \times k$。 得出这个性质之后开个小根堆反悔贪心即可,首先 $a_i0$ 的,如果还没到 $m$ 场电影,我们就直接往里塞就可以,如果到了,我们就进行反悔操作,取出已选的贡献最 ......
题解 Theatre 1862E Kolya Movie

CF1839C Insert Zero and Invert Prefix 题解

首先考虑无解的情况,很明显 $a_n$ 必须为 $0$,否则没有解,因为如果最后一位为 $1$ 那么必须有 $n$ 这个数存在于 $b$ 序列中,而这种情况时不符合题意的。 然后考虑如何求解,先考虑一种比较特殊的情况,就是若干个 $1$ 后面接着一个 $0$,这里假设 $1$ 的数量有 $k$ 个, ......
题解 Insert Invert Prefix 1839C

【五期邹昱夫】CCF-A(SP'23)3DFed: Adaptive and Extensible Framework for Covert Backdoor Attack in Federated Learning

> "Li, Haoyang, et al. "3DFed: Adaptive and Extensible Framework for Covert Backdoor Attack in Federated Learning." 2023 IEEE Symposium on Security an ......