solution p9194 the of
Cannot read properties of undefined (reading 'indexOf') at VueComponent.resetField (index.js:...
Cannot read properties of undefined (reading 'indexOf') at VueComponent.resetField (index.js:1:370572) elementUI源码报错,原因竟然是form-item没加prop,折腾了一两个小时,真是服 ......
The 2020 ICPC Asia Shenyang Regional Programming Contest M. United in Stormwind
Preface 先补一下这周一队友VP的ICPC2020沈阳,这场由于我在补作业+晚上有大物实验,因此只参与了中间一个多小时,纯口胡了几个简单题 因为我没怎么参与所以过的其它题就不写补题+写博客了,毕竟队友会等于我会 那么就主要把我比赛时看了但没啥思路的M补了,AI祁神好像在补那我就不管了,后面好像 ......
The 2023 CCPC Guilin J. The Phantom Menace
好劲的字符串题,然而实际上和字符串没啥关系 比赛的时候全队应该就只有我没读过题面,感觉如果让我看到这个重排+循环同构第一反应肯定是枚举偏移量+Hash比较前后缀,因为我字符串算法高级的不会只会一个Hash,说不定能搞出点想法 但今天补的时候发现写起来细节还是挺多的,尤其是有向图的欧拉回路和无向图版本 ......
Solution - 公路旅行
Link。 又名:《不会 T1 记》。 原来用到了神秘的倍增!但是我写了一个申必二分,最坏 \(O(qn \log n)\),甚至不如暴力,我是🤡。 类似于 ST 表那样,\(f_{i, j}\) 表示从 \(i\) 出发经过 \(2 ^ j\) 段不大于 \(L\) 的路程,那么 \(f_{i, ......
Solution Set - CF787
Vive le R & M! 还被种草了 Hurt,真的颇有感触,但这是 Solution Set,就不写了。 A. The Monster exgcd,但是发现 \(1 \leq a, b, c, d \leq 100\) 直接暴力枚举即可。我认为这是 \(O(1)\) 的,但题解认为是 \(O( ......
Solution - Hossam and (sub-)palindromic tree
又名:《最近 vjudge 题全部罚坐》。 唯一 Trick:回文序列,就想区间 dp!时间复杂度 \(O(n ^ 2)\)! 如果是序列:\(f_{l, r}\) 表示 \([l, r]\) 的最长回文子序列,\(f_{l, r} = \max(f_{l + 1, r}, f_{l, r - 1} ......
502 Bad Gateway Registered endpoint failed to handle the request
502 Bad Gateway: Registered endpoint failed to handle the request. 502 Bad Gateway错误是一种常见的HTTP错误,通常表示代理服务器在尝试访问上游服务器时遇到了问题,因此无法返回请求的内容。这个错误消息表明,代理服务器无 ......
CF1894B Two Out of Three
思路 简简单单构造题,就是要认真读题,是能且只能满足两个条件。 我们可以考虑每种数字,如果数字只有一个,是不能满足任何一个条件的,那就随便给一个 \(b\) 即可。 如果这个数字有多个,那么就只能有两种 \(b\),否则就会满足三个条件,所以一种数字最多满足一种条件。 所以,如果只有一个或者甚至没有 ......
uniapp运行启动时候出现 The current application is running in a custom debugging base....
突然出现这个,原来是uniapp说的自定义基座,是在app/src/main/assets/data/dcloud_contro.xml中 需要修改hbuilder标签中的debug的值,如果为true则会出现标题的提示,如果改为false则不会出现标题提示的弹窗 <hbuilder debug=" ......
python3 json.dumps(OrderDict类型) 报错:TypeError: Object of type datetime is not JSON serializable
chatgpt给出的解决方案, 在json.dumps()函数调用中传入default参数来指定如何处理datetime对象 import json from datetime import datetime def datetime_handler(obj): if isinstance(obj, ......
[939] Generate a new shapefile based on a list of records and query polygons from a large shapefile
ref: arcpy.management.MakeFeatureLayer(in_features, out_layer, {where_clause}, {workspace}, {field_info}) ref: arcpy.management.SelectLayerByAttribute ......
二、什么是“The Fenix Project”?
软件架构风格从大型机(Mainframe),发展到了多层单体架构(Monolithic),到分布式(Distributed),到微服务(Microservices),到服务网格(Service Mesh),到无服务(Serverless)……你能发现,在技术架构上确实呈现出“从大到小”的发展趋势。 ......
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker-compose up -d 安装docker环境,提示一下错误:docker-compose 命令没发现。 docker compse up -d 报错: Cannot connect to the Docker daemon at unix:///var/run/docker.soc ......
The 2023 CCPC Guilin H. Sweet Sugar
CF评测机最近读入怎么这么慢啊,一样的算法,\(10^6\)的输入用scanf和关流cin都TLE飞,一定要用fread快读才能卡过可海星 这个题比赛的时候最后封榜后徐神和祁神就在一起冲这个题,给出的贪心的思路其实也是对的,但没有想到可以分奇偶性然后DP来验证 当然也和我占着机子写不出C红温有关,最 ......
vcpkg install polyclipping:x64-windows Could not locate a manifest (vcpkg.json) above the current working directory. This vcpkg distribution does not have a classic mode instance.
错误信息表明 vcpkg 在当前工作目录及其父目录中找不到 vcpkg.json 文件,因此无法确定要安装的库。 这可能是因为你执行 vcpkg install 命令的位置不在包含 vcpkg.json 文件的项目目录中。 以下是解决方法: 确保在包含 vcpkg.json 的项目目录中运行命令: ......
The 2023 CCPC Guilin C. Master of Both IV
Preface 妈的期中考终于结束了,感觉在区域赛前抽出将近两周的时间不训练去复习有点得不偿失的说 现在终于有时间来补一下题,其实手头要补的题还挺多的,一个是上次CCPC桂林打完后可做的一些题,另一个是这段时间零碎地练习的两场 一场台湾的网络赛有两个题赛时卡着都没写出来,过两天补一下;另一个就是这周 ......
browsermob-proxy-2.1.4启动失败,报错ProxyServerError: The Browsermob-Proxy server process failed to start. Check <_io.TextIOWrapper name='D:\server.log' mode='w' encoding='cp936'>for a helpful error message.
server.log文件错误信息: Running BrowserMob Proxy using LittleProxy implementation. To revert to the legacy implementation, run the proxy with the command-li ......
虚拟机ping不通物理机 PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
准备做samba服务配置的时候 ping 192.168.10.1 (物理机地址) PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 查看自己的虚拟网络编辑器 是不是进主机网卡的网段没有设置好 2.查看自己的虚拟机网卡有没有连接 确保是已连 ......
chrome浏览器报Cannot read properties of undefined (reading 'getUserMedia')
chrome访问摄像头的时候可能报这个错误。使用https协议可以解决这个问题,如果不能使用https可以通过修改chrome配制解决。 在chrome地址栏输入chrome://flags/#unsafely-treat-insecure-origin-as-secure 在Insecure or ......
mkfs.xfs报错 mkfs.xfs: /dev/new/new_box appears to contain an existing filesystem (ext4). mkfs.xfs: Use the -f option to force overwrite.
在设置逻辑卷文件类型时候报错 mkfs.xfs: /dev/new/new_box appears to contain an existing filesystem (ext4). mkfs.xfs: Use the -f option to force overwrite. 上面是说目标分区,已 ......
umount 报错umount: /new_room: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
挂载逻辑卷后,尝试更新逻辑卷的文件系统 [root@server lost+found]# umount /new_room/ umount: /new_room: target is busy. (In some cases useful info about processes that use ......
[ARC107F] Sum of Abs 题解
题意 给定一个 \(N\) 个点,\(M\) 条边的简单无向图,每个节点有两个值 \(A_i\) 和 \(B_i\)。 现对于每个节点,均可以选择花费 \(A_i\) 的代价将其删去或保留节点。若一个节点被删除,那么所有与其向连的边也会被删除。 定义一个极大联通块的权值为联通块内所有节点的 \(B_ ......
The song of Academia
In the realm of intellect, where thoughts intertwine, Intellectual pursuits, in brilliance, they shine. A young scholar, impulsive, yet keen to refine ......
「模拟赛」Solution Set
\(\text{heart}\) \(\text{Solution}\) 可以记 \(f(u)\) 为从 \(u\) 出发到某个点停止的方案数,\(f(u)\) 可以 \(O(n)\) 转移,显然复杂度为 \(O(n^2)\). 当前我们要转移 \(u\) 子树内,对于 \(v\in \text{s ......
[P1518 [USACO2.4] 两只塔姆沃斯牛 The Tamworth Two]的解题思路
P1518 [USACO2.4] 两只塔姆沃斯牛 The Tamworth Two 初始思路 利用数字1~4代表方向; 利用两个循环来实现两个角色的行为,通过每一步break实现两个角色的同步。 由于题目本意是同步,而我这实质上是分步(牛在前Farmer John在后),所以用Farmer John ......
Solution - Makoto and a Blackboard
Link。 朴素 dp 应该不用说了。放个用 map 的代码。 int dfs(int n, int k) { if (!k) return n; if (f[make_pair(n, k)]) return f[make_pair(n, k)]; int tot = 0, ans = 0; for ......
The A to Z of ... from the Economist
The A to Z of economicsEconomic terms, from “absolute advantage” to “zero-sum game”, explained to you in plain Englishhttps://www.economist.com/econom ......
公告 & Solution - 公路旅行
以后应该会用 Obsidian 搭个博客,博客园可能会被弃用了。 为了有点价值放个不知道什么东西上来。 Link。 不会 T1!原来用到了神秘的倍增!但是我写了一个申必二分,最坏 \(O(qn \log n)\),甚至不如暴力,我是🤡。 类似于 ST 表那样,\(f_{i, j}\) 表示从 \( ......
[题解] CF1051F The Shortest Statement
The Shortest Statement 给一张 \(n\) 个点 \(m\) 条边的无向连通图,保证 \(m - n \le 20\),\(q\) 次询问求两个点间的最短路。 \(n, m, q \le 10^5\)。 由于边数只比点数多 20,所以如果我们建出这张图的一棵生成树,那么非树边至 ......
study of 'Missing data imputation framework for bridge structural health monitoring based on slim generative adversarial networks'
the Stochastic Gradient Descent (SGD):为了提高鲁棒性,SGAIN框架的优化器采用了随机梯度下降(SGD) 一,SGAIN框架有两个重要目的:鉴别器D的目的是最大化正确预测M矩阵的概率;生成器的目的是最小化D预测M矩阵的概率。此外,利用反向传播算法对发生器和鉴别器 ......