monocarp and set the

The 2023 ICPC Asia Hangzhou Regional Contest

目录写在前面赛时MJDGHH 之后的一个半小时赛后写在最后 写在前面 赛时题目按照过题顺序排序,赛后补题按照个人向难度排序。 虽然补题大概要拖到期末之后了。 这学期确实是超负荷了,现在脑子里一团糟,赛时的记忆已经不太清楚了。 省流版:搏一搏单车变摩托,但是怂了。 赛时 M 开局我正开,有中文题面好评 ......
Hangzhou Regional Contest 2023 ICPC

CF301D Yaroslav and Divisors

因为是排列,所以数对总数是调和级数的 \(O(n\log n)\),可以暴力枚举。 容斥,区间左右端点均在 \([l,r]\) 中的数对数量等于左右端点均在 \([1,r]\) 中的数对数量减去左右端点均在 \([1,l-1]\) 中的数对数量,再减去左端点在 \([1,l-1]\) 中且右端点在 ......
Yaroslav Divisors 301D 301 and

kali反弹shell Command shell session X is not valid and will be closed

msfvenom生成test.exe 执行监听但是报错, [-] Command shell session 15 is not valid and will be closed[*] 172.24.96.1 - Command shell session 15 closed. 最后检查发现默认的 ......
shell Command session closed valid

Solution Set 2023.12.13

CF1736E Swap and Take 设在第 \(i\) 次操作后产生贡献的值为初始序列的 \(a_{p_i}\),可以发现产生的贡献的指针移动方式为每次向后移动 \(1\),而通过交换数字最多可以使得某个数字每次向后移动 \(1\),由此可以得出每次产生贡献的位置单调不减,即 \(p_1 \ ......
Solution 2023 Set 12 13

Unhandled exception. System.IO.IOException: The configured user limit (128) on the number of inotify instances 处理

现象:Unhandled exception. System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached, or the per-process ......

simpread-Ubuntu 扩容磁盘、扩容内存_ubuntu 扩容 the file system can not be resized while i-CSDN 博客

原文地址 blog.csdn.net 参考:Ubuntu 磁盘扩容及启动问题整理 作者:一只青木呀 发布时间: 2020-12-08 10:42:19 网址:https://blog.csdn.net/weixin_45309916/article/details/110850358 也可参照正点原 ......

[Codeforces] CF1737C Ela and Crickets

CF1737C Ela and Crickets 题意 给定一个 \(n\times n\) 的棋盘,棋盘上有且仅有三颗排成 \(\text{L}\) 形的棋子。 对于 \(\text{L}\) 形的定义,有且仅有以下四种情况: 棋子的移动规则和跳棋相同。它可以水平、垂直或斜向移动。当且仅当一个棋子 ......
Codeforces Crickets 1737C 1737 Ela

The Devil Is in the Details: Window-based Attention for Image Compression

目录简介 简介 基于CNN的模型的一个主要缺点是 cNN结构不是为捕捉局部冗余而设计的,尤其是非重复纹理,这严重影响了重建质量。受视觉转换器(ViT)和Swin Transformer最新进展的启发,我们发现将局部感知注意机制与全局相关特征学习相结合可以满足图像压缩的期望。 介绍了一种更简单有效的基 ......

2023.12 ~ After the ice turns into water / the sea I hang upside down will be your sky.

COCI 2023.11 LOJ3999 考虑把填数过程倒过来做,那么就变成了覆盖。 设 \(f(i,j,0/1)\) 表示目前填进去 \(i\) 个数,且最后一个填的数是 \(j\),并且 \(j\) 的位置在最左侧/最右侧的方案数。以 \(f(i,j,0)\) 为例,转移有: \(f(i,j,0 ......
the 2023.12 upside After turns

A fast and simple algorithm for training neural probabilistic language models

目录概Noise contrastive estimation Mnih A. and Teh Y. W. A fast and simple algorithm for training neural probabilistic language models. ICML, 2012. 概 NCE ......

ERROR: Could not find a version that satisfies the requirement basicsr== (from versions: none)

(py37_gan) C:\Users\Administrator>pip3 install basicsr==WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after ......

[ARC141C] Bracket and Permutation

考虑假设已知括号序列 \(s\),如何求出 \(p,q\)。 对于求 \(p\),考虑从 \(s_1\) 到 \(s_n\) 逐个往里放,如果能放就直接放,肯定不劣,否则就从后面抽最近的左括号放过来,然后继续放。不难证明不存在更优方案,对于 \(q\) 同理。 接下来我们发现,如果 \(p\) 中存 ......
Permutation Bracket 141C ARC 141

sans sec 564 Red Team Operations and Adversary Emulation - 红队运营和对手仿真

564.1 红队演习介绍与规划 混乱的术语定义: 不需要知道这些词语的分别含义,只需要知道你在搞渗透 • Ethical Hacking • Vulnerability Scanning • Vulnerability Assessment(SEC460: Enterprise Threat and ......
红队 Operations Adversary Emulation 对手

CF1793C Dora and Search

CF1793C Dora and Search Difficulty:1200 题意翻译 题目描述 给定一个长度为 \(n\) 的排列 \(a\) ,问是否存在正整数 \(l,r\) 使得 \(a_l,a_r\) 均不为 \(a_{l...r}\) 中的最大值或最小值。 输入输出格式 第一行一个正整 ......
Search 1793C 1793 Dora and

vscode settings.json

{ "workbench.startupEditor": "none", "workbench.iconTheme": "vscode-icons", "workbench.colorTheme": "Dracula", "window.title": "${rootName}${separator ......
settings vscode json

Solution Set 2023.12.12

ABC332G Not Too Many Balls 可以转化为最大流模型,设节点 \(x_i\) 代表第 \(i\) 种球,\(y_j\) 代表第 \(j\) 个盒子。考虑如下建边方案: \(S \rightarrow x_i\),容量为 \(A_i\) \(x_i \rightarrow y_j ......
Solution 2023 12 Set

pure-admin pnpm  ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE  Cannot perform a frozen installation because the version of the lockfile is incompatible with this version of pnpm

事情是这样的,用的开源pure-admin 的框架,用的是pnpm,本地环境都是可以的,但是发布到生成就报以下错误 然后看部署参数,是这样的,强制用了lock文件,本来也没问题 报错的意思是json 文件跟pnpm-lock.json 文件不匹配 但是本地看着是匹配的,随便挑选几个包版本看着也是一致 ......

System Suspend and Device Interrupts 【ChatGPT】

https://www.kernel.org/doc/html/v6.6/power/suspend-and-interrupts.html 系统挂起和设备中断 版权 © 2014 Intel Corp. 作者:Rafael J. Wysocki rafael.j.wysocki@intel.com ......
Interrupts Suspend ChatGPT System Device

The Zen of Python

The Zen of Python The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Com ......
Python The Zen of

gh-ost 报错 ERROR 1236 (HY000): A slave with the same server_uuid/server_id as this slave

使用 gh-ost 对表在线加索引时,第一次发生了下面的报错(使用gh-ost很长时间了,第一次遇到这个报错): [2023/12/12 11:48:08] [error] binlogstreamer.go:77 close sync with err: ERROR 1236 (HY000): A ......
server slave server_uuid server_id gh-ost

PyQt报错could not find or load the Qt platform plugin "windows"

PyQt报错could not find or load the Qt platform plugin "windows" 解决方法 搜索plugins\platform,找到一个platform文件夹(比如F:\conda_env\envs\ml\Lib\site-packages\PyQt5\Q ......
quot platform windows plugin could

mysql create store procedure for loops, and with parameters respectively

drop procedure if exists insert_into_t2_sp; DELIMITER // CREATE PROCEDURE insert_into_t2_sp() BEGIN DECLARE i INT DEFAULT 2; WHILE (i <= 1000000) DO I ......

ElasticSearch之Node query cache settings

对于filter查询,ElasticSearch提供了缓存查询结果的特性,当缓存中存在满足查询条件要求的数据时,直接从缓存中提取查询结果。 对于ElasticSearch节点,该节点上的所有shard共享同一个缓存区域。 ElasticSearch基于LRU算法来管理缓存中的数据,当空间不足以承载最 ......
ElasticSearch settings query cache Node

Redis命令整合(四) Set型

集合类型。元素各不相同没有顺序 1.添加元素 sadd [keyName] [member1] [member2]... eg: sadd letters a b c 2.删除元素 srem [keyName] [member1] [member2]... eg srem letters a b 3 ......
命令 Redis Set

初中英语优秀范文100篇-024The Best Gift I've Ever Received -我收到的最好的礼物

PDF格式公众号回复关键字:SHCZFW024 记忆树 1 Among all the gifts I have received , the hand-made scarf from Judy is the best gift I've ever received. 翻译 在我收到的所有礼物中,J ......
范文 Received 礼物 初中 最好

CPU and Device Power Management 【ChatGPT】

https://www.kernel.org/doc/html/v6.6/driver-api/pm/index.html#cpu-and-device-power-management CPU和设备电源管理 CPU空闲时间管理 CPU空闲时间管理子系统 CPU空闲时间调度器 CPU空闲时间管理驱动 ......
Management ChatGPT Device Power CPU

Clock sources, Clock events, sched_clock() and delay timers【ChatGPT】

https://www.kernel.org/doc/html/v6.6/timers/timekeeping.html 内核时间管理基础知识 本文将简要解释一些基本的内核时间管理抽象概念。它部分涉及内核树中通常在drivers/clocksource中找到的驱动程序,但代码可能分布在整个内核中。 ......
Clock sched_clock ChatGPT sources events

The numerical results

......
numerical results The

[QOJ1359] Setting Maps

题目链接 \(k=1\) 的时候显然是最小割。把一个点 \(u\) 拆成 两个点,中间连流量为 \(c_u\) 的边。 那么考虑扩展到 \(k\) 更大的情况。把上图的每个入点和出点都拆成 \(k\) 个。把节点 \(u\) 第 \(i\) 层入点和第 \(i+1\) 层入点连接,再把第 \(i\) ......
Setting 1359 Maps QOJ

[CF1592F2] Alice and Recoloring 2

题目链接 操作 2 和 3 可以用另两个代替,没有任何用。 设 W 表示 \(t_{i,j}=0\),B 表示 \(t_{i,j}=1\) 考虑差分。设 \(t_{i,j}=s_{i,j}\oplus s_{i+1,j}\oplus s_{i,j+1}\oplus s_{i+1,j+1}\),那么目 ......
Recoloring 1592F Alice 1592 and