directory validhome selected the
The 13th Shandong ICPC Provincial Collegiate Programming Contest
Preface 昨天VP的那场没有字符串还没有原形毕露,今天遇到一个后期字符串直接和祁神大眼瞪小眼了 最后一个半小时祁神狂冲F成功写出两个version的假算法,而我已经滚去补之前欠下的题目了 赛后被徐神狠狠拷打了,评价为徐神是我们的红太阳,没有他我们都不能活 A. Orders 签到,按截止时间处 ......
The 2023 ICPC Asia Hefei Regional Contest Test D. Balanced Array
Preface 这题赛场上出了个关键点基本都想到的做法,但因为一个地方卡住了没过去导致不得不选择弃掉这道题 赛后补了下发现\(O(n\log n)\)的做法是只差临门一脚了,但\(O(n)\)的做法还是trick性挺强的 Solution 首先考虑枚举\(k\),不难发现此时合法的前缀一定是个连续的 ......
ICPC2022Hangzhou A Modulo Ruins the Legend 题解
Link ICPC2022Hangzhou A Modulo Ruins the Legend Question 求 $$\sum\limits_{i=1}^n a_i+n\times s+\frac{n(n+1)}{2}\times d \mod m$$ 的最小值 Solution 我们把这个式子 ......
hive启动出现Cannot create directory /tmp/hive. Name node is in safe mode.
原因:进入了安全模式,hdfs在启动开始时会进入安全模式,这时文件系统中的内容不允许修改也不允许删除,直到安全模式结束。 执行命令: hadoop dfsadmin -safemode leave 退出安全模式即可 出现 Safe mode is OFF 表示成功退出 ......
hive升级元数据报错The reference to entity "useSSL" must end with the ';' delimiter.
使用Hive自带的schematool工具升级元数据,也就是把最新的元数据重新写入MySQL数据库中。 执行以下命令 cd /usr/local/hive ./bin/schematool -initSchema -dbType mysql 出现The reference to entity "us ......
内核文档翻译 —— Overview of the Linux Virtual File System
原文:https://www.kernel.org/doc/html/latest/filesystems/vfs.html#overview-of-the-linux-virtual-file-system Introduction The Virtual File System (also kn ......
The 2023 ICPC Asia Hefei Regional Contest Test I. Linguistics Puzzle
Preface 这题yysy真不难,但比赛的时候想出做法后没时间写了,只能遗憾地看着倒计时结束 Solution 直接上爆搜复杂度肯定会爆,考虑有哪些数是可以不用搜直接推出来的 首先样例启发我们\(0,1\)这两个数很好确定,因为\(0\)对应的字母单独出现的次数肯定最多,而\(1\)作为两位的开头 ......
The 2021 Sichuan Provincial Collegiate Programming Contest
Preface 下下周还要去打重庆市赛,最近就找些省赛来练练手 不得不说省赛的签到题是真的多,人均10+的过题看起来还是很恐怖的 这场虽然因为徐神缺席,而且前面的题目都让祁神来写导致罚时略高,但无所谓反正最后也摸到了11题(主要是没有字符串) A. Chuanpai 某不知题意的签到 #includ ......
Python报错:performance hint: av/logging.pyx:232:5: the GIL to be acquired
参考: https://stackoverflow.com/questions/77410272/problems-installing-python-av-in-windows-11 https://github.com/PyAV-Org/PyAV/issues/1177 报错信息: C:\Win ......
Misc_XCTF_WriteUp | János-the-Ripper
题目 分析 用记事本打开文件,看见开头有明显的 PK,猜测是 zip 压缩包,且包内有 flag 的 txt 文件。 用 010 Editor 打开文件,另存为 zip 压缩文件。 解压文件,发现需要密码。用 Ziperello 进行爆破: 得到密码: 打开压缩包,得到 flag。 Flag fla ......
ubuntu编译软件报错:fatal error: libnet.h: No such file or directory
参考: https://blog.csdn.net/wuyou1995/article/details/104742326/ 解决方法: sudo apt-get install libnet1-dev ......
SQL 数据操作技巧:SELECT INTO、INSERT INTO SELECT 和 CASE 语句详解
SQL SELECT INTO 语句 SELECT INTO 语句将数据从一个表复制到一个新表中。 SELECT INTO 语法 将所有列复制到新表中: SELECT * INTO newtable [IN externaldb] FROM oldtable WHERE condition; 只复制 ......
nmap: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory解决方法
nmap: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory解决方法 nmap运行报错解决方法 在centos7里面直接安装lib ......
【pwn】[HGAME 2022 week1]enter the pwn land --数组下标修改,栈溢出
查保护 然后ida看代码逻辑 来到关键函数,这里存在栈溢出漏洞,但是这是数组循环一个字节读入,我们看一下i的地址 发现i的地址在rbp上面,所以我们构造payload肯定会把i的值给覆盖了,所以payload在构造时需要修改一下i的值,让我们的payload继续读入到正确位置,然后就是简单的ret2 ......
As a project I always want to create for myself as a gift, the MVVM framework is more or less satisfying
I used to want to build a MVVM project for myself, especially since I wrote my mementowriter project which is no jQuery, and that was very time consum ......
【问题记录】【IDEA】启动突然报错 java: Internal error in the mapping processor: java.lang.NullPointerException
1 启动报错 换了个高版本的 IDEA,启动突然报错: 2 解决办法 添加编译配置参数: -Djps.track.ap.dependencies=false ......
论文:Predicting the performance of green stormwater infrastructure using multivariate long short-term memory (LSTM) neural network
题目“Predicting the performance of green stormwater infrastructure using multivariate long short-term memory (LSTM) neural network” (Al Mehedi 等, 2023, ......
Problem: D. Igor In the Museum
题意: 给出一个地图,符号.代表空地,可走,*代表墙,不可走,墙的每一面都有一幅画,问给定一个空地,可以看到多少画 做法: 使用两次BFS,第一次用于统计一个联通的子块最多可以看多少画,第二个BFS用于把这个联通块内的点都修改成答案. 注意一点技巧:每一次寻找不同的联通块,可以打上它的专属标记,以免 ......
Mysql - Error 1055: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'user.nickname' which is not functionally dependent on columns in GROUP BY clause
编写SQL时需要如下错误,即出现错误 ERROR 1055,SELECT列表不在GROUP BY语句内且存在不函数依赖GROUP BY语句的非聚合字段'edusassvc.u.nickname',这是和sql_mode=only_full_group_by不兼容的(即不支持)。 分析问题 1)原理层 ......
el select 选项多列,换行,表格,数据量大,全部显示,自定义el-select,el-select插入表格
1、效果图: 2、实现: 自定义下拉框内容,采用radio或checkbox作为选项绑定值 <template> <el-select v-model="selectValue" v-bind="$attrs" clearable> <!-- 隐藏的option组件,展示下面的插槽 --> <el- ......
SQLC - Problem: can't recognize the numeric data type in PostgreSQL
Problem: sqlc can't recognize the numeric data type in PostgreSQL, it makes it string. The default sql_package database/sql can't overwrite the "numer ......
[WARNING] The POM for com.alibaba:druid:jar:1.1.21 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details是什么问题
这个警告表明 Maven 在尝试下载或处理 com.alibaba:druid:1.1.21 这个依赖项时遇到了问题。警告的具体内容是说 POM(Project Object Model)文件无效,这可能会导致 Maven 无法正确地处理传递性依赖关系。有几种可能的原因和解决方法: 1.网络问题: ......
Planting poplar threes—the application of a Chinese way to control soil cadmium pollution in Japan
Situations of soil cadmium pollution in Japan In the last century, there was a serious health accident in Japan, an outbreak of Itai-itai disease, whi ......
ZIMP - Init the Zimple Bank project
zzh@ZZHPC:~/zd/Github/zimplebank$ go mod init github.com/ZhangZhihuiAAA/zimplebank go: creating new go.mod: module github.com/ZhangZhihuiAAA/zimpleban ......
CF1886B Fear of the Dark
这道题只有两种情况:\(O\) 点和 \(P\) 点都在同一个圆圈里;或者 \(O\) 点在一个圆圈里,\(P\) 点在另外一个圆圈里。 让我们用 \(d(P,Q)\) 来表示 \(P\) 点到 \(Q\) 点之间的距离,\(R\) 记为半径。 我们先来看第一种情况:\(O\) 点和 \(P\) 点 ......
The Hello World of Deep Learning with Neural Networks
The Hello World of Deep Learning with Neural Networks dlaicourse/Course 1 - Part 2 - Lesson 2 - Notebook.ipynb at master · lmoroney/dlaicourse (github ......
MQTT vs. HTTP: which one is the best for IoT?
MQTT vs. HTTP: which one is the best for IoT? 翻译 搜索 复制 ......
The Hello World of Deep Learning with Neural Networks
The Hello World of Deep Learning with Neural Networks dlaicourse/Course 1 - Part 2 - Lesson 2 - Notebook.ipynb at master · lmoroney/dlaicourse (github ......
JQuery获取select点击option的data-*属性
<option value="33333" data-socketid="1111" data-numnew="22222">4444</option> $(document).on('change', '#institute-select', function () { // 这里是重点,使用at ......