desertification china of
Codeforces Round 857 (Div. 2) B. Settlement of Guinea Pigs
你非常喜欢豚鼠。每个笼子可以住两只豚鼠,且你不想把每个笼子放入不同性别的豚鼠。豚鼠只有两种性别。假设你买到豚鼠时并不知道性别,只有医生能够分辨。 接下来的 \(n\) 天方案中,若第 \(i\) 天为 \(1\) ,你买入一只豚鼠;若为 \(2\) ,你请医生分辨你的豚鼠性别。 给出方案,你最少需要 ......
The 2021 CCPC Guilin Onsite (XXII Open Cup, Grand Prix of EDG)
Preface 昨天下午16:30~21:30刚打完CCPC2021的广州,今天早上九点又开始打这场桂林,压力拉满了属于是 这场比起昨天那场良心太多了,开场还挺顺(虽然因为写Dijkstra偷懒TLE了四发),但开题啥的都是见一个会一个 中期虽然有点卡但因为祁神会了几何所以没有空机,然后再点完外卖后 ......
The JSON value of length n is too large and not supported
https://github.com/dotnet/runtime/issues/39953 I'm referring to this issue #30746 that was closed with limit of 125MB staying fixed opposed to being c ......
ARMv8.0下duckdb的安装与编译过程-解决 Failed to allocate block of 2048 bytes
ARMv8.0下duckdb的安装与编译过程-解决 Failed to allocate block of 2048 bytes 背景 duckdb 是一个很流行的单机版数据库引擎 同事下载了相关的预编译的二进制, 发现duckdb会报错如下: "Out of Memory Error: Faile ......
GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.14, but module 'audioplayers_darwin' has a minimum deployment target of macOS 10.15
Build Settings MACOSX_DEPLOYMENT_TARGET = 10.15 ......
TypeError: Object of type 'Animal' is not JSON serializable/ 自定义对象 转json串
import jsonclass Animal(object): def __init__(self): self.name = 'tom' def __repr__(self): return f'my name is {self.name}&i like apple'd1 = { 'county ......
[922] Implementation of zooming to selected features by Python
ref: ArcPy.mp Get Selected Features Extent ref: Python/ArcPy classes/Geometry # Set the path to your project file (.aprx) project_file = r"Map 1.3 Her ......
ErrorReply: ERR wrong number of arguments node redis 连接问题解决
今天在测试kvrocks 与socket.io 集成的时候出现了此问题,刚好记录下 原始连接配置 const pubClient = createClient({ url:"redis://dalongdemo@localhost:6666/0"}); 问题修改 const pubClient = ......
[919] Change the horizontal alignment of a cell to center within a table of a Word document using Python
To change the horizontal alignment of a cell to center within a table of a Word document using Python and the python-docx library, you can set the ali ......
[918] Copy the formatting from one cell in a table of a Word document to another cell in Python
To copy the formatting from one cell in a table of a Word document to another cell, you can use the python-docx library in Python. Here's a step-by-st ......
[920] Copy the font style from one cell in a table of a Word document to another cell using Python
To copy the font style from one cell in a table of a Word document to another cell using Python and the python-docx library, you can access the font p ......
[915] Implementation of zooming to layer and exporting to PDF in arcpy
ref: Camera - ArcGIS Pro ref: Introduction to arcpy.mp # Set the path to your project file (.aprx) project_file = r"Map 1.3 Heritage.aprx" # Reference ......
3——of C++枚举
C++枚举类型 总结一下C++里面的枚举类就是为了方便字符表示数据的一种方式吧,java枚举类也差不多 默认情况下,一个枚举变量没赋值的话则编译器赋为0,后面一次加1 枚举类型默认为int类型,也可以赋值其他数字类型 枚举的取值范围就不太纠结,感觉没啥用;枚举和switch配合,很棒 enum ex ......
AtCoder Regular Contest 167——B - Product of Divisors
题目很明显,给定 所有因数的积不断除以最多能除几次。 首先,很容易发现,对于每一对因子,都可以对答案得出B的贡献,设A的因子数目为n。 将A进行质因数分解,PBa1,PBa2,PBa3……PBam,那么因数个数就是质因子加一的乘积。 那么因子对数也就是前者一半。答案就是B乘因子对数除以二注意此处除操 ......
! CocoaPods 1.10.0 out of date (1.11.0 is recommended).
[!] Xcode - develop for iOS and macOS (Xcode 14.2) ! CocoaPods 1.10.0 out of date (1.11.0 is recommended). CocoaPods is used to retrieve the iOS and m ......
CF367C Sereja and the Arrangement of Numbers
这题首先上来会发现题目中的很多信息都是假的,核心就是问要构造一个\(x\)个点的完全图至少要多长的序列 我们把序列中相邻的两个元素看作图上的一条边,则可以把问题转化为:给一个\(x\)个点的完全图,问至少要走多长的路径才可以遍历图中的所有边至少一次 简单讨论下会发现当\(x\)为奇数时,此时图中每个 ......
CF612E Square Root of Permutation
挺有意思的一个构造题,不过这种排列置换相关的套路感觉都太明显了 首先考虑把原图的每个置换环求出来,稍作观察会发现所有长度为奇数的置换环都可以很容易地构造出对应的\(q\)数组 但长度为偶数的置换环就不能单独构造了,但我们发现可以把两个长度相同且为偶数的置换环交错着合并来得到一个合法的\(q\)数组 ......
USACO 2023 US Open Platinum Triples of Cows
洛谷传送门 LOJ 传送门 hot tea. 一次删点操作的影响太大了,考虑添加虚点以减小影响(相同的套路在 CF1882E2 Two Permutations (Hard Version) 也出现过)。 具体而言,我们把第 \(i\) 条边 \((u, v)\) 变成 \((u, n + i), ......
vue进行跳转之后出现Cannot read properties of undefined (reading 'router') TypeError: Cannot read properties of undefined (reading 'router'的问题
问题描述 使用router进行页面跳转时,就出现了这样的问题: 也就是这里出现了问题: 问题解决 本来是按照网上的教程: const _this=this; 但是,但是,我本来就是用的这种方法呀~ 然后就打算直接在这个界面引用: import router from '@/router' route ......
Go - Creating Subtests to Have Finer Control Over Groups of Test Cases
Problem: You want to create subtests within a test function to have finer control over test cases. Solution: Use the t.Run function to create subtests ......
[913] Updating a Table of Contents (TOC) in a Word document using pywin32 to display numbers
If the python-docx method mentioned earlier doesn't work on your computer, you can try using the pywin32 library, which allows you to interact with Mi ......
Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'jira.ji.ID' which is not functionally dependent on columns in GROUP BY clause;only_full_group_by
这个报错的完整信息 Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'jira.ji.ID' which is not functionally dependent on ......
definition of the convex optimization
A convex optimization problem is one in which the objective and constraint functions are convex, which means they satisfy the inequality \(f_i(\alpha ......
【dp】【竞赛图的性质】ARC163D Sum of SCC 题解
ARC163D 发现这个竞赛图一定能被分为两个集合 \(A\),\(B\)。满足 \(\forall u\in A,v\in B\),均有 \(u\to v\in E\)。答案就是划分这两个集合的方案数。 证明: 首先,竞赛图缩完点后一定是一条链,对强连通分量进行标号,满足编号小的强连通分量指向编号 ......
The solution of P9194
10黑寄。 problem & blog 考虑到处理加边并不简单,所以我们可以考虑一个黑点 \(p\),连边\((u,p)(p,v)\)。 考虑在现在这棵树上连个点在原图中有变相连相当于有一个公共的 \(p\) 是它们的邻居。 于是删边操作等价于将一个点的儿子黑点并到父亲黑点上。 为了统计答案我们设 ......
web of science中查文献变灰,解决办法
用个人账号登陆会出现下面的问题: 文献这里用不了。 解决办法: 不要用自己的账号登录,要用学校的账号登录。 然后会出现下面界面,选择自己的学校: ......
【转】,接上面3篇.Implement Sql Database Driver in 100 Lines of Go
原文: https://vyskocil.org/blog/implement-sql-database-driver-in-100-lines-of-go/ Implement Sql Database Driver in 100 Lines of Go 2019.02.18 Go databas ......
[908] Implementation of the progress bar in Python
You can implement a progress bar in Python to visually represent the progress of a task using various libraries. One commonly used library for this pu ......
: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2023/10/16 19:07:45 tick2023/10/16 19:07:46 dial tcp 7.11.12.26:3309: connectex: Only one usage of each socket address (protocol/network address/port) ......