objectives you for and

std::for_each易忽略点

以下代码为修改vector内部的每一个元素,使其每个元素大小变为原来的平方。 std::vector v1{1, 2, 4, 2}; std::for_each(begin(v1), end(v1), [](auto& n) { return n * n; }); for (const auto& ......
for_each each std for

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

Educational Codeforces Round 154 (Rated for Div. 2)

# Preface 太FW了现在,纯纯给队伍拖后腿,马上要成为我们队CF Rating最低的了 但换句话说徐神和祁神都这么猛,我直接躺着被嘎嘎带飞好像也很爽啊 不管怎么样还是要多练,不过接下来可能要按专题重点突破了,明天队里开个会确定下大家的主攻方向再说 # A. Prime Deletion 因为 ......
Educational Codeforces Round Rated 154

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

Implementing Domain Driven Design (A practical guide for implementing the Domain Driven Design with the ABP Framework)

##CONTENTS **Introduction**.................................................. * **Goal**...................................................... * **Sim ......

Educational Codeforces Round 154 (Rated for Div. 2)(A—C)

# [A. Prime Deletion](http://codeforces.com/contest/1861/problem/A "A. Prime Deletion") ## 思路: 从1到9,每个数后面都可以加一个数构成一个含有两个数的质数,只需要从s[1]~s[9]中找到一个数与s[0]构 ......
Educational Codeforces Round Rated 154

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

Educational Codeforces Round 154 (Rated for Div. 2)

感觉edu的题目都比较有新意; A.Prime Deletion 题意:给定长度为9的数,且1-9每个数字出现一次,求按照原定顺序选几个数组成的质数(起码选择两个); 下意识写了一个dfs,过了; 1 #include<bits/stdc++.h> 2 using namespace std; 3 ......
Educational Codeforces Round Rated 154

CF797F Mice and Holes 题解

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

论文解读(SPGJL)《Soft Prompt Guided Joint Learning for Cross-Domain Sentiment Analysis》

Note:[ wechat:Y466551 | 可加勿骚扰,付费咨询 ] 论文信息 论文标题:Soft Prompt Guided Joint Learning for Cross-Domain Sentiment Analysis论文作者:Jingli Shi、Weihua Li、Quan Bai ......

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

慎用Object#equals(obj)

org.apache.commons.lang3.StringUtils.equals(final CharSequence cs1, final CharSequence cs2) 下面是用 != 比较两个Integer对象,IDE给出提示。 IDE提示用equals来比较。但最好的方式是用 != ......
Object equals obj

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

这下好了,Visual Studio(Not Code) for Mac 不维护了

8 月 30 日,微软官方宣布 Visual Studio for Mac IDE 将于 12 个月后停用。作为被广泛宣称是宇宙第一的 IDE 突然停止维护,确实是值得我们开发者关注的事情!但为什么在前端社区?因为作为一个集成编译环境,前端生态背后经常出现它的身影。 什么是 Visual Studi ......
Visual Studio Code Not Mac

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

Proj CDeepFuzz Paper Reading: ACETest: Automated Constraint Extraction for Testing Deep Learning Operators

## Abstract Github: https://github.com/shijy16/ACETest 背景: 1. DL operators 用来计算多维tensors,很重要 本文:ACETest Task: automatically extract input validation c ......

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

presentation for markdown

https://lendmeyourear.net/presentations-from-markdown-with-remark-js.html https://stymied.medium.com/what-slides-from-markdown-5239ed31e7ac ......
presentation markdown for

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

java.lang.IllegalStateException: No primary or single unique constructor found for interface javax.servlet.http.HttpServletRequest问题的解决

# 问题描述 更改功能出现这样的问题; # 问题解决 经过不断试错,发现是这里出现问题: ![](https://img2023.cnblogs.com/blog/2808014/202308/2808014-20230831213643712-45226725.png) 然后将原来的这种: ![] ......

【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的信息管理,之前用的比较少,看代码才发现通过日志 ......

how to get the SVG document content that inside a object tag in javascript

# how to get the SVG document content that inside a object tag in javascript > object tag & SVG document content in javascript ## demos ```js ``` ![im ......
javascript document content inside object

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