struct typedef and

cf1582F2. Korney Korneevich and XOR (hard version)(暴力优化)

cf1582F2 对于每种数可以维护一个列表v[x],表示到当前位置,最后一个数小于等于x,能够取到的值,对于当前的数ai,我们可以用v[ai]中的值x与ai异或,来更新v[ai+1],v[ai+2]后面的值。 然后就是有两个优化,每次我们更新完后,都对v[a[i]]清空,因为只有两个相同数之间的数 ......
Korneevich 暴力 version Korney 1582

【转载】The Beginner’s Guide to Creating and Selling Cheat Sheets

【from】https://medium.com/practice-in-public/the-beginners-guide-to-creating-and-selling-cheat-sheets-23756af06b12 This is 10x better than your 50-page ......
Beginner Creating Selling Sheets Guide

【Vue3响应式原理#02】Proxy and Reflect

本篇文章将解决上一篇文章 结尾遗留的问题:如何让代码自动实现响应性? 换句话说就是,如何让我们的 effect 自动保存 & 自动重新运行?又如何拦截对象属性的访问和赋值操作? ......
原理 Reflect Proxy Vue3 Vue

[LeetCode] 1359. Count All Valid Pickup and Delivery Options 有效的快递序列数目

Given n orders, each order consists of a pickup and a delivery service. Count all valid pickup/delivery possible sequences such that delivery(i) is al ......
序列 数目 LeetCode Delivery Options

安全 – CSP (Content Security Policy) and X-Frame-Options

前言 之前讲过 CSRF。防 Cookie hacking 的。 也介绍过防 XSS 的 HtmlSanitizer。 今天再介绍多 2 个 CSP 和 X-Frame-Options。 CSP (Content Security Policy) 它是游览器的其中一种防 hack 机制。除 IE 以 ......

Dasha and Nightmares 题解

题目传送门 一道字符串题。 既然两个字符串拼接后有一种字符不能出现,那么可以枚举这个字符,我们就只需要关注没有出现过这种字符的字符串了。 剩下的字符串仅会出现 \(25\) 种字符,而我们并不关心字符串里字符的顺序,仅关心字符出现的个数的奇偶性,因此我们可以把字符串看做是一个长度为 \(25\) 的 ......
题解 Nightmares Dasha and

Entering China's strategies of water pollution and identifying an effective measure, as well as its working principle and impact

Water Pollution Control Strategies in China(Some examples) (1)China’s strategy for controlling water pollution focused first on reducing the discharge ......

c: struct sort descending and ascending

/** * @file hello.c * @author your name (geovindu) * @brief * @ide vscode c11,c17 windows 10 * @version 0.1 * @date 2023-11-05 * * @copyright Copyrigh ......
descending ascending struct sort and

Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) B. Kuroni and Simple Strings

Problem - 1305B - Codeforces 啦啦啦,这题题目有点长,概括一下就是,希望将所有()匹配的括号去掉 问你需要操作多少次 双指针,一个i一个j,从前往后记录匹配的括号 如果发现: 1. 括号匹配 2. i<j ok,就放入ans (⊙o⊙)…,最后记得sort一遍ans,第一 ......
Challenge Div T-shirts Strings Kuroni

获取图片并进行图片切换(FolderBrowserdDialog and OpenFileDialog用法)

winform布局如下图: 获取文件夹按钮,通过FolderBrowserDialog对话框,选择本地电脑文件路径,后台代码实现如下: private void button1_Click(object sender, EventArgs e) { folderBrowserDialog1.Desc ......

CF390B Inna, Dima and Song Solution

转裁自我的洛谷博客 :https://www.luogu.com.cn/blog/653832/solution-cf390b 题目传送门 思路: 如果 $b_i \le 1$ 则无解。 如果 ceil((double)b[i]/2)>a[i],即最好情况下,两个人的音量平均,但是较大的音量还是大于 ......
Solution 390B Inna Dima Song

CF1874F Jellyfish and OEIS

题意 给定一个序列 \(m\) ,你需要求出满足以下性质排列 \(p\) 的个数,对大质数取模: 对于任意 \(l,r\) ,\(p_{l...r}\) 为一个 \([l,r]\) 的排列与 \(r \le m_l\) 不同时成立。 Sol 考虑从题目的奇怪限制入手(也只能从这里入手),我们记一个区 ......
Jellyfish 1874F 1874 OEIS and

c: Analyzing text in window and Ubuntu

Ubuntu 22.4: /** * @file AnalyzingText.h * @brief Analyzing text * @author geovindu,Geovin Du,涂聚文 (geovindu@163.com) * ide: vscode c11,c17 Ubuntu 22.4 ......
Analyzing Ubuntu window text and

c: c: Eclipse IDE for Embedded C and C++ Developers - 2023-09 in Ubuntu 24.0

创建文件夹mkdir Eclipse移动文件至/usr/Eclipse 文件夹路径mv eclipse-inst-jre-linux64.tar.gz /usr/Eclipse 解压文件tar -zxvf eclipse-inst-jre-linux64.tar.gz ......
Developers Embedded Eclipse Ubuntu 2023

poj 2288 Islands and Bridges

Islands and Bridges Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 15357 Accepted: 4098 Description Given a map of islands and bridges tha ......
Islands Bridges 2288 poj and

CF1245D Shichikuji and Power Grid 题解

Problem - D - Codeforces Shichikuji and Power Grid - 洛谷 首先这题显然不可能是 dp 我们发现第二个式子是困难的,但题目竟然给 \(n \leq 2000\) ,因此我们考虑抽象建图。我们把两个点的贡献两两建成一张图,最终的答案显然是把这个图划分 ......
题解 Shichikuji 1245D Power 1245

【转】MYSQL 表连接 ON AND 和ON WHERE 的区别

转自:SQL左右连接中的on and和on where的区别-CSDN博客 原先一直对SQL左右连接中的on and和on where的区别不是太了解,直到在网上看到了下面这段话才豁然开朗。 在使用left join时,on and和on where条件的区别如下: 1、on条件是在生成临时表时使用 ......
MYSQL WHERE AND ON

c: Eclipse IDE for Embedded C and C++ Developers - 2023-09

https://www.eclipse.org/downloads/ ......
Developers Embedded Eclipse 2023 IDE

CF580E Kefa and Watch 题解

花了一个半个下午+半个晚上终于调出来了...... 0. 题面 长度为 \(n\) 的字符串,每个字符是 \(\mathtt{0} \sim \mathtt{9}\) 的数位,\(m + k\) 种操作: 格式为 1 l r c,表示将 \(l \sim r\) 赋值为 \(c\),保证 \(0 \ ......
题解 Watch 580E Kefa 580

CodeForces 1060G Balls and Pockets

洛谷传送门 CF 传送门 NOIP 模拟赛 T2。很厉害的题。 想象数轴上 \(a_1, a_2, \ldots, a_n\) 位置上各有一个洞,每个非负整数位置上有一个点。 每次操作相当于,对于每个点,如果它刚好位于一个洞,那么它会掉进去;否则设它的位置为 \(p\),位置在它前面的洞有 \(t\ ......
CodeForces Pockets 1060G Balls 1060

Unity DOTS系列之Struct Change核心机制分析

最近DOTS发布了正式的版本, 我们来分享一下DOTS里面Struct Change机制,方便大家上手学习掌握Unity DOTS开发。 基于ArchType与Chunk的Entity管理机制 我们回顾以下ECS的内存管理核心机制,基于ArchType+Chunk的Entity管理模式。每个Enti ......
机制 核心 Change Struct Unity

C++ typedef、#define、using的用法

一、#define 1. 含义 #define主要用来做宏定义,主要格式为: #define 标识符 常量 宏定义后的标识符就是代表常量的意思,再以后的代码当中,使用标识符的地方都被替换成常量了,这里的常量可以是字符、字符串、变量、类型、表达式等等。值得注意的是,宏定义定义的标识符是在程序编译之前的 ......
typedef define using

CF743C Vladik and fractions

大胆拆开,变成两个 \(\frac{1}{n}\),令 \(z=n\),那么 \(\frac{1}{x}+\frac{1}{y}=\frac{x+y}{xy}=\frac{1}{n}\)。 注意到分母是乘积,分子是和,可以令 \(x,y\) 的单位为 \(n\)。设 \(x=kn\),那么 \(x+ ......
fractions Vladik 743C 743 and

网络编程之——server and client

此篇笔记仍然是关于编程中出现的问题及解决方案记录。服务器与客户端交互模式是网络通信中一种典型且高效保密的通信方式,此篇总结了一点网络编程中可能出现的问题。 关于网络编程中出现的问题 1.首先,测试过程中可能出现的死循环原因之一可能是将memset(buf,0,sizeof(buf)); gets(b ......
网络编程 server client 网络 and

城市时空预测的统一数据管理和综合性能评估 [实验、分析和基准]《Unified Data Management and Comprehensive Performance Evaluation for Urban Spatial-Temporal Prediction [Experiment, Analysis & Benchmark]》

2023年11月1日,还有两个月,2023年就要结束了,希望在结束之前我能有所收获和进步,冲呀,老咸鱼。 摘要 解决了访问和利用不同来源、不同格式存储的不同城市时空数据集,以及确定有效的模型结构和组件。 1.为城市时空大数据设计的统一存储格式“原子文件”,并在40个不同的数据集上验证了其有效性,简化 ......

Sasha and Array 题解

Sasha and Array 题目大意 给定一个长为 \(n\) 的序列 \(a\),支持以下操作: \(\forall i \in[l,r],a_i\gets a_i +x\)。 求 \(\left(\sum\limits_{i=l}^{r}F_{a_i}\right)\bmod (10^9+7 ......
题解 Sasha Array and

CF908H New Year and Boolean Bridges

这说明你那破子集卷积不是万能的。 显然题目要求的图 \(G'\) 是弱联通的,考虑给出的图 \(G\) 中两个点 \(i,j\) 之间 \(G_{i,j}\) 的条件转化为: \(G_{i,j}=\mathtt A\),说明 \(i\) 能到 \(j\) 且 \(j\) 能到 \(i\),则 \(i ......
Boolean Bridges 908H Year 908

[931] arcpy - buffer, delete shp and rename shp

The script is as follows: arcpy.analysis.Buffer("siteboundary.shp","siteboundary1.shp","-5 Centimeters","FULL","ROUND","NONE",None,"GEODESIC") arcpy.m ......
shp buffer delete rename arcpy

[930] arcpy - change spatial reference, zoom to layer and export to PDF

The general idea is as follows: aprx -> layout -> map -> layer -> extent layout -> setExtent layout -> exportToPDF The script is as follows: def expor ......
reference spatial change export arcpy