monocarp and set the
[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 ......
[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 ......
The 2023 CCPC Guilin 游记
Preface 纯在偷懒,比赛结束过了这么多天才把这篇游记摸出来 这场CCPC桂林算是我们全队第一次线下打区域赛,虽然赛前VP往年CCPC时偶尔也能打进金牌区(一般都是徐神切出字符串或是祁神切掉计算几何时) 但鉴于没啥经验而且这场桂林强队如云,因此心理预期能守银就算成功 最后的结果也算是中规中矩地完 ......
Roma and Changing Signs
传送门 记\(t\)为\(a\)中\(a_i<0\)的数的个数。 若\(k \le t\),则从小到大将负数变成正数最优。 假设不这么操作最优,也就是选了一个较大的负数或者正数取反,将它们换成一个小的负数取反,答案不劣。 若\(k \ge t\)且\(k-t\)为偶数。 所有数的和为\(s_1\), ......
CF1874F Jellyfish and OEIS 题解
题目链接 不明白出题人的脑回路是不是被宇宙射线改变过 /jy。 题目给出了若干个区间,要我们计算满足每个区间都不是对应下标的排列的数量,正着计算不满足要求的数量是困难的,我们将其容斥,转化为钦定一些区间要求其必须满足它是对应下标的排列,在下文中,我们称这样的区间为一个约束。 我们设约束的集合为 \( ......
Maximum AND
看到这么多位运算,拆位考虑。 对于\(f(a,b)\)的一位,要么是0,要么是1。 该位是1,说明有某种\(b\)的排列,使得该位上\(a_i \oplus b_i\)均为1。(因为\(\&\)的结果是1,说明全都是1)。 那么我们要优先满足哪一位为1呢? 一个直接的想法是优先满足高位为1,因为\( ......
2023牛客暑期多校训练营7 K-Set 二进制拆位 前缀和
传送门 给出一个\(n\)个数的集合,定义任意一个子集S的价值为\(|S|\cdot max\cdot min\cdot(\bigoplus_{x\in S}a_x)\) 显然可以先将\(\{a_i\}\)进行由小到大的排序。 先考虑只有一个数字的情况答案为\(\sum a_i^3\) 考虑枚举\( ......
[929] datetime format (strftime() and strptime() Format Codes)
ref: strftime() and strptime() Format Codes The following is a list of all the format codes that the 1989 C standard requires, and these work on all p ......
[LeetCode] 2574. Left and Right Sum Differences
Given a 0-indexed integer array nums, find a 0-indexed integer array answer where: answer.length == nums.length. answer[i] = |leftSum[i] - rightSum[i] ......
C. Tenzing and Balls
题目大意: 给定一个序列,你可以拿走任何两个相等元素中间的所有元素,问最多可以拿走多少元素 思路: dp: 第一次优化: 对于每个元素作为最后一个元素,考虑在它前面和它相等的元素选一个消去中间元素加上前面一个元素的dp值, $dp[i]=max(dp[j-1]+i-j+1,dp[i-1]),a[i] ......
Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!
安装Redis,执行 install_server.s 脚本时,出现如下报错: 解决方案,注释掉 install_server.sh 中的部分代码,注释代码详情如下: 再次执行 install_server.sh 脚本,结果如下: ......
Mind the Gap 队伍实录
正式比赛 \(**Year2023**\) \(ICPC Nanjing:\)未开始 \(CCPC Shenzhen:\)未开始 \(ICPC Jinan:\)未开始 交题圣经 " 语言别交错 题目别交错 long long 有没有开 空间够不够 大小够不够 自己的样例试过没 格式'\n'有没有 板 ......
【CVPR2023】Efficient and Explicit Modelling of Image Hierarchies for Image Restoration
> 论文:https://readpaper.com/paper/4728855966703960065 代码:https://github.com/ofsoundof/GRL-Image-Restoration 这个论文的代码地址叫GRL,意思是 Global, Regional, Local 的 ......
题解 ABC326E【Revenge of "The Salary of AtCoder Inc."】
根据期望的线性性,总工资的期望等于在每一个 \(i\) 处获得的工资的期望之和,而在 \(i\) 处获得的工资的期望 \(E(i)=A_i\times p(i)\),其中 \(p(i)\) 表示掷骰子掷到 \(i\) 且有效的概率。 初始 \(p(0)=1\),则只有从 \(0\sim i-1\) ......
redis cluster 多节点部署时出现Waiting for the cluster to join
如图显示一直卡在这里: 可能由一下几种情况 1、redis.conf 中的bind 配置问题 可能配置有问题限制的访问redis ,通常设置为本机IP ,或者可以设置为 0.0.0.0 进行测试 2、可能是集群总线端口未开放 若通讯端口为6379,那么集群总线端口16379一定要打开 3、clust ......
[Compose] Concurrency + Channel and Reactive programming for JS
Concurrency + Channel (CSP): Concurrency is a way to run operation in isolated thread, a way to better utilize the CPU resources and handle multi simu ......
AT_abc326_e Revenge of "The Salary of AtCoder Inc." 题解
AT_abc326_e Revenge of "The Salary of AtCoder Inc." 题解 一道简单的概率论+动态规划题目(然而我赛时没看这道题 题意 有一个长度为 \(n\) 的序列 \(A\)、一个 \(n\) 面骰子,掷若干次骰子,如果这一次掷骰子的点数小于等于上一次的点数, ......
mysql create table and insert into via c++ and lmysqlcppconn
//create table t1 CREATE TABLE `t1` (`id` bigint NOT NULL AUTO_INCREMENT,`author` varchar(40) NOT NULL,`comment` varchar(40) NOT NULL,`content` varcha ......
【找到 Anchor-based and Anchor-free 性能差距的本质】Adaptive Training Sample Selection (ATSS) 论文精读
原始题目:Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selection 中文翻译:通过 自适应训练样本选择 缩小 Anchor-based and Anch ......
[CF551E] GukiZ and GukiZiana
CF551E 卧槽,lzh最爱的分块!卧槽,lzh最爱的分块!卧槽,lzh最爱的分块!卧槽,lzh最爱的分块! 维护懒标,散块重构。 unordered_map<long long,int> 会 TLE unordered_map<long long,bool> 会 AC #include<cstd ......
Docker_报错:Host key for 47.116.79.175 has changed and you have requested strict checking. Host key verification failed.
Host key for 47.116.79.175 has changed and you have requested strict checking. Host key verification failed. 问题原因用OpenSSH的人都知ssh会把你每个你访问过计算机的公钥(public ......
Python中的集合 Set
set集合,集合的特点是无序的 写法:s = {1,2,3} 但是如果内容是空的,它不是set集合,而是dict字典 s = {} print(type(s)) #输出结果 <class 'dict'> {} s = {3,2,1} print(type(s)) print(s) #输出结果 <cl ......
报错:The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone
在运行项目的时候遇到了这样一个报错,是数据库的问题但是不知道是什么原因,在网上搜了一下发现只需要在url后面加上serverTimezone=UTC这串代码就行了 例如 jdbc:mysql://localhost:3306/result?characterEncoding=UTF-8&server ......
Soil and Water Loss in Southern Jiangxi
Ganzhou, a typical red soil hilly area in Jiangxi province, is a pilot area for high-quality development of soil and water conservation in China. Thro ......
在CentOS7上更改端口号时报错:Job for sshd.service failed because the control process exited with error
1、问题描述 在在CentOS7×上更改端口号时报错: “Job for sshd.service failed because the control process exited with error code.See ‘systemcl status& sshd service" and fo ......
ADASTRNG - Ada and Substring 题解
ADASTRNG - Ada and Substring 题解 题目描述 给定一个小写字符串。 输出 \(26\) 个数,代表以 \(\texttt{a}\sim \texttt{z}\) 开头的本质不同的子串个数。 题目分析 高度数组模板题。 可以想到将以每个字符开头的本质不同的子串数目转化为: ......
How to Find the Size of a DB2 Database
How to Find the Size of a DB2 Database EMBER CROOKS JUNE 19, 2012 15 COMMENTS How big is it? How much space do we need if we copy it? How big will it ......
一种编程思想——利用settings文件实现功能的增减
一. 正常函数版本的思路 1. notify.py def wechat(content): print('微信通知:%s'%content) def qq(content): print('qq通知:%s'%content) def email(content): print('邮箱通知:%s'% ......
Unveiling the Dangers of Land Pollution
Unveiling the Dangers of Land Pollution Land, the very foundation of life, sustains ecosystems, supports agriculture, and provides spaces for human ha ......
CF1592F Alice and Recoloring
CF1592F1 Alice and Recoloring 1 CF1592F2 Alice and Recoloring 2 Part1 很容易发现,其实二和三操作是没有用的. 对于二操作,可以用一操作进行类似于求二维前缀和的方式实现,需要进行一操作至多 \(2\) 次,花费为 \(1+1=2\) ......