increasing decreasing 1864a and

Proj CDeepFuzz Paper Reading: Invariance-inducing regularization using worst-case transformations suffices to boost accuracy and spatial robustness

## Abstract 本文: Task: 1. prove invariance-inducing regularizers can increase predictive accuracy for worst-case spatial transformations 2. prove that ......

​MPDIoU: A Loss for Efficient and Accurate Bounding Box Regression

​MPDIoU: A Loss for Efficient and Accurate Bounding Box Regression MPDIoU:一个有效和准确的边界框损失回归函数 摘要 边界框回归(Bounding box regression, BBR)广泛应用于目标检测和实例分割,是目标定位 ......

pytorch分布式训练报错:Duplicate GPU detected : rank 1 and rank 0 both on CUDA device 35000

之前使用的比较老的torch 1.8.1,换到torch 2.0后报错 "rank 1 and rank 0 both on CUDA device 35000" 将main函数开头部分的初始化 ```python distributed.init_process_group(backend='nc ......
分布式 rank Duplicate detected pytorch

【题解】CF1852D Miriany and Matchstick

考虑 `dp`,设 $f_{i,0/1}$ 表示考虑到前 $i$ 位,且第 $i$ 位填入 A/B 可能的答案集合,显然地朴素转移时间复杂度 $O(n^2)$。 试分析 `dp` 性质,观察发现所有 `dp` 中得到的集合为区间内抠去至多一个点。 > > 证明 > 我们首先来观察转移过程是怎样的。第 ......
题解 Matchstick Miriany 1852D 1852

Codeforces Round 837 (Div. 2) A. Hossam and Combinatorics

给一个长为 $n$ 的数组 $a$ ,统计出所有二元组 $(a_i, a_j)$ 数量,满足以下条件: * $1 \leq j view ``` #include void solve() { int n; std::cin >> n; std::vector a(n); for (int i = ......
Combinatorics Codeforces Hossam Round 837

Codeforces Round 843 (Div. 2) A2. Gardener and the Capybaras (hard version)

有三个字符串 $s_1, s_2, s_3$ ,每个字符串只有 $a, b$ 组成。三个字符串顺序连接在了一起。满足以下条件之一: * $s1 \leq s_2, s_3\leq s_2$ * $s1 \geq s_2, s_3\geq s_2$ 以上为字典序比较。 给出连接的三个字符串,输出一组可 ......
Codeforces Capybaras Gardener version Round

Codeforces Round 845 (Div. 2) and ByteRace 2023 B. Emordnilap

给一个长为 $n$ 的排列,对于它的每一个排列 $p$ ,复制一份并 $reverse$ 拼到原排列的后面得到 $a = \left [p, p_{reverse} \right ]$ 。 求 $p$ 的所有排列对应的 $a$ 的逆序对数之和,结果对 $1E9+7$ 取模。 **逆序对贡献**: * ......
Codeforces Emordnilap ByteRace Round 2023

* Codeforces Round 885 (Div. 2) A. Vika and Her Friends

给一个 $n \times m$ 的网格,每个格子对应一个坐标 $(a, b)$ 。如果存在一个各自的坐标为 $(c, d)$ 且满足 $|a - c| + |b - d| = 1$ ,则称 $(a, b)$ 与 $(c, d)$ 相邻。 给出 $k + 1$ 个点,初始坐标分别为 $(x_0, y ......
Codeforces Friends Round Vika 885

1521A - Nastia and Nearly Good Numbers

## A. Nastia and Nearly Good Numbers https://codeforces.com/problemset/problem/1521/A ```python """ 思路: 1.就是普通的打印,NO的情况是只有b=1的时候才会出现,其他的都是YES,如果不想再继续分 ......
Numbers Nastia Nearly 1521A 1521

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

# 前言 本节重点对filterMeshGlb()函数进行理解。该函数在可视化模块中重点对全局地图中的每个栅格进行mesh的生成。一开始我的疑惑是代码是如何实现相邻cell之间的mesh连接的,这个应该具有较大的挑战性。其实,代码只考虑栅格内部的mesh的生成,全局mesh地图也就是mesh的并集, ......

The Riordan Group and Applications 第1章 笔记

2022年的一本书,只有376页。证明直接去书里面找。 [TOC] # 1 介绍 ## 1.1 啥是RiordanArray ## 1.2 起源和研究动机 ## 1.3 基础的应用 $$ \mathfrak{B}_r=\sum_{n \geq 0} \frac{1}{(r-1) n+1}\left( ......
Applications Riordan 笔记 Group The

Proj CDeepFuzz Paper Reading: Differential Testing of Cross Deep Learning Framework APIs: Revealing Inconsistencies and Vulnerabilities

## Abstract 背景:目前对cross-framework conversion中的inconsistencies和security bugs的研究少有 本文:TensorScope Task: test cross-frame APIs in Machine Learning Librar ......

css: SVG and CSS

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS 两种方式的CSS SVGCSS: /*** SVG demonstration ***/ /* page */ svg { background-color: ......
css SVG CSS and

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

# 前言 本节继续对update()函数进行理解。update是将当前点云对应的map_now对全局地图map_glb进行更新。 ## 获取重叠的区域 `OverlapCellsRelation overlap_ship = map_now.overlapCells(*this);` ```c++ ......

B. Fedor and New Game

## B. Fedor and New Game https://codeforces.com/problemset/problem/467/B ```python """ 467B 思路: 1.暴力方法: 通过循环二进制之后的,逐个位与fedor进行判断,通过取余,如果最后不同的超过3个就计+1 ......
Fedor Game and New

XOR and Favorite Number题解

## XOR and Favorite Number题解 ### 思路引导 这一道题主要是为了说明莫队算法和分块之间的联系。 先主要讲讲莫队的用处吧。 它是个离线算法,维护两个指针l,r。 移动l和r的时候顺便进行更改,维护好l-r区间内的某个值。 对于询问区间的排序,遵循l所在的分块相同,其次是r ......
题解 Favorite Number XOR and

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

[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

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

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

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