monocarp and set the

《Mastering the FreeRTOS Real Time Kernel》读书笔记(5)中断管理

6.中断管理 在读这一章之前一直有一些疑惑,FreeRTOS中的中断是软中断吗,还是将外部硬中断的触发后,导入FreeRTOS的内部进行调度处理。如果是第一种,软中断和第三章讲的任务有区别吗,还是只是优先级比所有任务高。如果是第二种的话,外部中断的服务函数是不是不能写内容了,FreeRTOS的运行和 ......
Mastering FreeRTOS 笔记 Kernel Real

ASP.NET Core Minimal API之optional route parameter with default value and optional route parameter

public static void Main(string[] args) { var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); app.MapGet("/product/{name}", (s ......
parameter optional route Minimal default

文献阅读-We extend the well-established assumption-based interface of incremental SAT solvers to clauses, allowing the addition of a temporary clause that has the same lifespan as literal assumptions.

Abstract: We extend the well-established assumption-based interface of incremental SAT solvers to clauses, allowing the addition of a temporary clause ......

Secure Code Warrior Introduction to OWASP Top 10 Awareness (with latest updates from the Web top 10 2021)

Missing Function Access Control Access to these functionalities should be restricted to authenticated users. However, the current mechanism only check ......

ABC262E - Red and Blue Graph

原题 翻译 诈骗诈骗诈骗诈骗诈骗诈骗诈骗诈骗!!! 第一眼看上去很像一个 NP-Hard 问题,完全没有思路 然后以为 dp ,然后看数据范围一眼寄 首先遇到 01 染色问题,而且一边连接的两点颜色相同/不同(其实主要是不同)会产生贡献的问题,要考虑一下能不能先统一染成一个颜色,然后看改变颜色后会产 ......
Graph 262E Blue ABC 262

5.4 Bounds on the optimal code length (Shannon-Fano coding)

From section 5.3, we have \(l_i^*=-\log_D p_i\), but it may not be integer, and we should choose \(l_i\) close to \(l_i^*\). So round it up using the ......
Shannon-Fano Shannon optimal Bounds length

数字人论文:Audio-Driven Facial Animation by Joint End-to-End Learning of Pose and Emotion

老规矩. 直接第三章 3. 端到端网络结构 给一个audio 短窗口, 也就是片段. 我们预测窗口中间时刻的面部表情. 我们把表情看做一个全端点的向量 (后面我们会看这是什么的一种刻画面部) 一旦我们网络训完, 我们回各个时间点同时生成, 并行. 即使不需要过去的帧画面, 依然生成很稳定的画面. ( ......

* Codeforces Round 665 (Div. 2) A. Distance and Axis

有一个点 \(A\) 在 \(OX\) 正坐标轴上的 \(x\) 坐标为 \(n\) 。需要找到一个点 \(B\) ,使得 \(||OB| - |AB||= k\) 。 现在给出非负整数 \(n\) \(k\) ,你可以执行任意次以下操作: 每步操作可以使 \(A\) 的坐标加一或减一。 询问最少需 ......
Codeforces Distance Round Axis 665

正则表达式 and re 模块

元字符: ^ $ [] {} () . \ ? * + ^ 只能放在正则表达式的前方,且也只能从目标字符串的首部开始匹配 $ 只能放在正则表达式的后方,且也只能从目标字符串的尾部开始匹配 [] 字符集 {} 匹配字符的长度范围,为一个闭区间 () 其中字符串代表一个整体 . 通配符,可以代表任意一个 ......
正则 表达式 模块 and re

cpu亲和性相关函数和宏 基础讲解[cpu_set_t]

cpu亲和性相关函数和宏讲解: 写在前面: 我在查找关于linux cpu宏函数没看到有对宏函数基础的、详细的讲解,笔者便通过官方文档入手,对次进行的翻译和理解希望能帮到对这方面宏有疑惑的读者 explain: /elem/ 表示为elem变量,这样子便于区分 P.S:#include <sched ......
亲和性 函数 cpu cpu_set_t 基础

CF1872B The Corridor or There and Back Again

CF1872B The Corridor or There and Back Again 观察第二组样例的解释,注意这句话:“第二个陷阱限制了你”。这启发我们计算经过每个陷阱之后最多还能向前走到哪里,然后取 \(\min\) 得到答案。 现在的问题是如何求出每个陷阱限制的最远可到达点。 由于要求折返 ......
Corridor 1872B Again There 1872

CF1867C Salyg1n and the MEX Game

CF1867C Salyg1n and the MEX Game 简单博弈论题。 设给出序列的 \(\text{mex}\) 为 \(x\),那么 Alice 第一次操作时加入 \(x\) 一定是最优的。此时显然有 \(\text{mex(s)} \ge x\)。 因为如果加入的数 \(y<x\), ......
Salyg1n Salyg1 1867C Salyg 1867

The 2021 CCPC Weihai Onsite

Preface 又被打爆了,看了下榜这场罚时比较炸喜提银首咯 不过yysy这场题出的还是挺好的,medium题都挺有意思需要想一想 但就是感觉考的组合计数这一块有点太多了,而且因为有人歪榜开局过了M,导致我前期一直在这道题上坐牢,最后还是徐神出马一套生成函数秒了此题 A. Goodbye, Ziyi ......
Onsite Weihai 2021 CCPC The

【PRC】鲁棒跨域伪标记和对比学习的无监督域自适应NIR-VIS人脸识别 Robust Cross-Domain Pseudo-Labeling and Contrastive Learning for Unsupervised Domain Adaptation NIR-VIS Face Recognition

【该文章为杨学长的文章,膜拜】 探索跨领域数据中的内在关系并学习领域不变表示 由于需要在低光照条件下实现24h的人脸识别,近红外加可见光的(NIR-VIS)人脸识别受到了更多的关注。但是数据标注是一个难点。该文章提出了Robust crossdomain Pseudo-labeling and Co ......

完美解决XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root‘

完美解决XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root‘ 源代码杀手 已于 2023-01-11 12:53:46 修改 阅读量4.1w 收藏 49 点赞数 13分类专栏: 报错记录 文章标签: linux版权 报错记录专栏收录该内 ......

How can I change the reference numbers in manuscript to blue color?

How can I change the reference numbers in manuscript to blue color? I am working in Word 2010 and EndNote X7. I want to change the color of citations ......
manuscript reference numbers change color

CF1204D2 Kirk and a Binary String (hard version) 题解

CF1204D2 Kirk and a Binary String (hard version) 题解 分析 先来分析 \(01\) 串的最长不下降子序列。全是 \(0\) 显然是不下降的,如果中间出现一个 \(1\),为了维护不下降的性质,后面就只能全是 \(1\)。一句话概括一下,\(0\) 后 ......
题解 version Binary String 1204D

How to set UniguiMContainerPanel with multi Row ?

http://forums.unigui.com/index.php?/topic/24269-how-to-set-uniguimcontainerpanel-with-multi-row/#comment-138778 Sirawit uniGUI Subscriber 8 Posted Sep ......
UniguiMContainerPanel multi with How set

CF785D Anton and School - 2 题解

CF785D Anton and School - 2 题解 分析 很明显有一种 \(\mathcal O(n^2)\) 的做法,遍历每一个 (,再枚举 \(k\),左边不包含这一位选 \(k-1\) 个 (,右边选 \(k\) 个 ),求组和即可。 但是数据范围是 \(n \le 2\times ......
题解 School Anton 785D 785

Java 深度优先搜索 and 广度优先搜索的算法原理和代码展示

111. 二叉树的最小深度 题目:给定一个二叉树,找出其最小深度。最小深度是从根节点到最近叶子节点的最短路径上的节点数量。 说明:叶子节点是指没有子节点的节点。 方法1:深度优先搜索 原理:深度优先搜索(Depth First Search)是一种遍历图的算法,它从图中的某个顶点出发,沿着一条路径不 ......
广度 算法 深度 原理 代码

xxx is not in the sudoers file. This incident will be reported

1、问题背景 在使用创建的用户访问超出用户权限的文件时,需要用到sudo命令,如1使用创建的用户编辑 /etc/hosts 文件,无法操作,详情如下: 原因:bigdata用户未在 /etc/sudoers 文件中做权限设置。 2、解决方案 在 /etc/sudoers 中做如下操作: # 1、查看 ......
incident reported sudoers file This

CodeForces 1886E I Wanna be the Team Leader

洛谷传送门 CF 传送门 把题意抽象成,给你长为 \(n\) 的序列 \(a\) 和长为 \(m\) 的序列 \(b\),初始有 \(m\) 个空集合(可重集),\(a\) 中的每个元素至多被分到 \(m\) 个集合中的一个。要求最后第 \(i\) 个集合 \(T_i\) 不为空,且 \(\fora ......
CodeForces Leader 1886E Wanna 1886

abc282E - Choose Two and Eat One

E - Choose Two and Eat One 非常巧妙的一集 可以将整个局面看作一张图,选两个数获得的score就是它们的边权,然后做最大生成树,不难发现操作和建树之间是一一对应的。 #include<cstdio> #include<algorithm> #include<cstring> ......
Choose 282E abc 282 Two

G. Anya and the Mysterious String

G. Anya and the Mysterious String Anya received a string $s$ of length $n$ brought from Rome. The string $s$ consists of lowercase Latin letters and a ......
Mysterious String Anya and the

Some seqs are too long, please rebuild the program with make parameter MAX_SEQ=new-maximum-length (e.g. make MAX_SEQ=10000000)

001、cd-hit报错如下 Some seqs are too long, please rebuild the program with make parameter MAX_SEQ=new-maximum-length (e.g. make MAX_SEQ=10000000) 002、解决方法 ......
MAX_SEQ new-maximum-length make MAX SEQ

6.7集合set

......
6.7 set

6.8集合set练习题

......
练习题 6.8 set

CF1303D Fill The Bag

贪心,二进制 很容易想到:把 \(n\) 转化为二进制,考虑如何得到每一位。 很显然,用小的数去“凑出”大的数不花费代价,用大的数“分解”出小的数要花费代价。所以。一个简单的贪心是:设当前要得到 \(n\) 的第 \(i\) 位的数 \(2^i\),尽量用小的数凑,若小的数凑不出,再用大的数分出 \ ......
1303D 1303 Fill Bag The

CF1874F Jellyfish and OEIS【容斥,DP】

给定序列 \(m_i\),求有多少排列 \(p\) 满足:对于满足 \(l \le r \le m_l\) 的所有 \((l,r)\),\(p_{l \sim r}\) 都不是 \(l \sim r\) 的排列。答案对 \(10^9 + 7\) 取模。 \(n \le 200\),时限 \(\tex ......
Jellyfish 1874F 1874 OEIS and

Python 集合(Sets)3

Python - 合并集合 在 Python 中,有几种方法可以合并两个或多个集合。您可以使用union()方法,该方法返回一个包含两个集合中所有项的新集合,或使用update()方法,将一个集合中的所有项插入另一个集合中: 示例,union()方法返回一个包含两个集合中所有项的新集合: set1 ......
Python Sets