morning four the in
PAT_A 1038 Recover the Smallest Number
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ......
How to get macOS CPU details information in the command line All In One
How to get macOS CPU details information in the command line All In One
如何通过命令行获取 macOS CPU 的详细信息
......
[QOJ6555] The 2nd Universal Cup. Stage 5. J : Sets May Be Good
先给 EI 磕三个 首先考虑用 \(n\) 个变量 \(x_1,x_2,\cdots,x_n\in\{0,1\}\) 表示第 \(i\) 个点选不选,那么导出子图的边数的奇偶性就是 \[f(x_1,x_2,\cdots,x_n)=\left(\sum_{(i,j)\in E}x_ix_j\right ......
[ARC072E] Alice in linear land 题解
[ARC072E] Alice in linear land 首先,一个 trivial 的想法是记 \(f_i\) 表示第 \(i\) 步前离终点的距离,于是 \(f_i=\min\Big(f_{j-1},|f_{j-1}-d_i|\Big)\)。 然后,我们设 \(f_i'\) 表示在修改第 \ ......
asp.net core signalr 客户端调用服务端方法报:Error:Failed to invoke 'adduserToConnection' due to an error on the server
TS端调用方法为: connection.start() .then(() => { connection.invoke("adduserToConnection",account,connection.connectionId); }) .catch((err) => { console.erro ......
CF1257E The Contest
用桶存,做一遍前缀和,令 \(b_{x,y}\) 表示序列 \(x\) 包含 \(1\sim y\) 的数字个数。考虑枚举第一个序列保留的前缀 \(1\sim i\),对于第三个序列,如果其保留了后缀 \(j\sim n(i<j)\),考虑哪些数需要被移掉,那么答案就是: \[b_{1,n}-b_{ ......
【论文阅读】点云地图动态障碍物去除基准 A Dynamic Points Removal Benchmark in Point Cloud Maps
【论文阅读】点云地图动态障碍物去除基准 A Dynamic Points Removal Benchmark in Point Cloud Maps 终于一次轮到了讲自己的paper了 hahaha,写个中文的解读放在博客方便大家讨论 Title Picture Reference and pren ......
The 2nd Universal Cup. Stage 5: Northern J Sets May Be Good
题解 我们考虑计算 \(\sum_{S\subseteq\{1,2,3,\cdots,n\}} (-1)^{cnt(S)}\),这里 \(cnt(S)\) 表示 \(S\) 集合的导出子图的边数。 我们记 \(x_i=[i\in S]\)。 我们考虑删掉 \(n\) 号点。 注意到如果 \(x_i\ ......
IDEA 出现 Cannot resolve method getParameter() in JSP 解决方法
原链接java - Cannot resolve method getParameter() in JSP - Stack Overflow IDEA中出现下图情况,版本IDEA 2022.2.3 。 此方法大概率可用,如果帮到你请点个赞吧~ 1.我们右键当前项目,选择进入"Open Module ......
如何修复 macOS 系统 UI 突然卡死的 bug All In One
如何修复 macOS 系统 UI 突然卡死的 bug All In One
逻辑蓝牙鼠标对系统 UI 界面操作无任何反应
问题排查
蓝牙鼠标电量不足,导致信号混乱了❌
解决方案
给蓝牙鼠标更换一个新电池 ✅ ......
Codeforces 1861F - Four Suits
萌新刚学 oi,开道小清新题找找感觉。 首先求出每个人最终有的卡牌数 \(X\),以及每个人需要收到的卡牌数 \(c_i\)。 考虑怎么计算一个人 \(i\) 的答案,假设我们希望第 \(i\) 个人最多的卡牌为类型 \(j\),那么得尽可能将类型 \(j\) 的卡牌给 \(i\)——显然我们最多能 ......
【题解 CF840C & P4448】 On the Bench & 球球的排列
On the Bench 题面翻译 给定一个序列 \(a(a_i\le 10^9)\),长度为 \(n(n\le 300)\)。 试求有多少 \(1\) 到 \(n\) 的排列 \(p_i\),满足对于任意的 \(2\le i\le n\) 有 \(a_{p_{i-1}}\times a_{p_i} ......
Go - Changing the Timing for Running Performance Tests
Problem: You want to run performance tests for a specific duration or a specific number of iterations. Solution: You can increase the minimum duration ......
Learn Git in 30 days—— 第 30 天:分享工作中几个好用的 Git 操作技巧
写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 终于来到了最后一天,这篇文章将分享几个好用的 Git 操作技巧,或许可以节省你不少 Git 版控过程的时间。 如 ......
Go - Avoiding Test Fixtures in Performance Tests
Problem: You want to customize the performance tests to avoid benchmarking test fixtures. Solution: You can start, stop, and reset the benchmark timer ......
论文阅读:Knowledge Distillation via the Target-aware Transformer
摘要 Knowledge distillation becomes a de facto standard to improve the performance of small neural networks. 知识蒸馏成为提高小型神经网络性能的事实上的标准。 Most of the previo ......
Windows -- 关于报错:“In included file: too few arguments provided to function-like macro invocat”解决方法
遇到报错如下: 点进去minwindef.h里报错显示: 点进winnt.h报错显示: 关于图一的报错,网上搜了一些解决方法如下: https://www.coder.work/article/568385 https://blog.csdn.net/Lyn_B/article/details/10 ......
Go - Running Tests in Parallel
Problem: You want to speed up testing by running tests in parallel. Solution: Use the t.Parallel function to enable tests or subtests to run in parall ......
Nginx配置错误:connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream
问题描述 今天本打算学一下Nginx反向代理发送请求到OpenResty(其实也就是个Nginx,可以把它理解成Anaconda中的python版本),再通过OpenResty使用Lua脚本向Redis或数据库查找缓存来着,在配环境的时候报了个502错误。 我把我的环境描述下,这样如果有遇到这个问题 ......
Huffman Tree in C
// // main.c // HuffmanTree // // Created by steve xiaohu zhao on 2023/10/18. // #include <stdio.h> #include <stdlib.h> // 定义一个 Huffman Tree 的节点 struc ......
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
CentOS7 pyenv安装Python 3.10.13 报错 yum install -y openssl-devel openssl11-devel openssl11-lib CPPFLAGS="-I/usr/include/openssl11" LDFLAGS="-L/usr/lib64/ ......
[914] In Python's datetime library, you can format dates using the strftime() method
In Python's datetime library, you can format dates using the strftime() method. This method allows you to create a formatted string representation of ......
[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 ......
[911] Read Data from Google Sheets into Pandas without the Google Sheets API (.gsheet)
ref: Read Data from Google Sheets into Pandas without the Google Sheets API import pandas as pd sheet_id = "1XqOtPkiE_Q0dfGSoyxrH730RkwrTczcRbDeJJpqRB ......
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 ......
The solution of P9194
10黑寄。 problem & blog 考虑到处理加边并不简单,所以我们可以考虑一个黑点 \(p\),连边\((u,p)(p,v)\)。 考虑在现在这棵树上连个点在原图中有变相连相当于有一个公共的 \(p\) 是它们的邻居。 于是删边操作等价于将一个点的儿子黑点并到父亲黑点上。 为了统计答案我们设 ......
ORA-01078: failure in processing system parameters ORA-00093: pga_aggregate_limit must be between 2048M and 100000G
在启动数据库实例时报错: ORA-01078: failure in processing system parametersORA-00093: pga_aggregate_limit must be between 2048M and 100000G 原因: 该报错是由于设置的pga_aggre ......
Node.js & SOAP All In One
Node.js & SOAP All In One soap A SOAP client and server for Node.js. This module lets you connect to web services using SOAP. It also provides a serve ......