spells types two of

【线段树合并】CF1805E There Should Be a Lot of Maximums 题解

CF1805E 待补:有另解 看到维护树上问题,可以想到线段树合并。 但直接维护显然不行,要一点技巧。 发现 \(val\) 的出现次数 \(cnt_{val}\) 如果 \(\ge 3\),那么一定是一个候选项,若 \(cnt_{val} = 1\),那么一定不能作为候选项。 于是可以用权值线段树 ......
线段 题解 Maximums Should 1805E

【图论】【寻找性质】CF1151E Number of Components 题解

CF1151E 发现每一个 \(f(l, r)\) 中的连通块总是一条链(一棵树)。 那么此时连通块的数量就等于点的数量减去边的数量。 先考虑点的总数,一个价值为 \(a_i\) 的点一定是在 \(l \leqslant a_i\) 且 \(r\geqslant a_i\) 的 \(f(l, r)\ ......
题解 Components 性质 Number 1151E

[ABC322G] Two Kinds of Base

[ABC322G] Two Kinds of Base 感觉很难入手的样子。凭借感觉认为合法的 \((a, b)\) 很少,先把 \(k = 2\) 另外算,然后注意到 \(S_1 > 0\),则 \(f(S, a) - f(S, b) \ge a^2 - b^2 = 2(a-b)b + (a-b) ......
Kinds 322G Base ABC 322

QT5.14: 打开文件出错warning: format '%s' expects argument of type 'char*'

错误提示信息: D:\Demo\QT5.14\CH5\CH501\imgprocessor.cpp:158: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'QChar*' [-Wform ......
39 argument warning expects 文件

【竞赛图】【DP】ARC163D Sum of SCC 题解

ARC163D 发现这个竞赛图一定能被分为两个集合 \(A\),\(B\)。满足 \(\forall u\in A,v\in B\),均有 \(u\to v\in E\)。答案就是划分这两个集合的方案数。 证明: 首先,竞赛图缩完点后一定是一条链,对强连通分量进行标号,满足编号小的强连通分量指向编号 ......
题解 163D ARC 163 Sum

Proj CDeepFuzz Paper Reading: NYX: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types

Abstract 背景:hypervisor(virtual machine monitor, VMM) 保障了不同虚拟机之间的安全隔离(security boundaries) 用户:攻击场景:在云服务上运行自身的VM instances, 提升权限 本文:Nyx 目的:coverage guid ......

什么是 Accessibility 领域的 Two Senses Concept

"Two Senses Concept" 是一个广泛应用于无障碍设计领域的概念,它强调了设计产品和服务时需要同时考虑到两个关键感觉:视觉和听觉。这个概念的目的是确保所有用户,包括视觉和听觉障碍的用户,都能够平等地访问和使用数字和物理环境中的信息和功能。在本文中,我将详细介绍Two Senses Co ......
Accessibility 领域 Concept Senses Two

E. Power of Points

E. Power of Points 题意很简单:从左到右取点,输出该点到每个点的距离之和 思路: 1.对一个有序的序列进行计算,我们发现从左往右,左边点数的距离会增加,右边点数的距离会减小 2.因此我们只需暴力的计算第一个点到所有点的距离之和,接下来的点只需一步就可计算出来 2.1 ans+=左边 ......
Points Power of

什么是 Angular 14 的 strict typing of Angular Reactive Forms

Angular 14 引入的 "strict typing of Angular Reactive Forms" 是一项强大的功能,它进一步提高了 Angular 应用程序的类型安全性和可维护性,特别是在处理表单时。这个功能使开发人员能够更精确地定义表单控件和表单模型的类型,从而减少了潜在的运行时错 ......
Angular Reactive strict typing Forms

什么是外企常说的 Line of Business

LOB(Line of Business)是一个广泛应用于外企管理和组织中的术语,用于描述公司的不同业务部门或业务线。它代表了一个组织内部的区分,每个LOB通常专注于不同的产品、服务或市场,以满足特定的客户需求和市场机会。LOB的概念有助于组织更好地组织和管理其不同的业务活动,以实现更高的效率和效益 ......
外企 Business Line of

什么是 Angular Ahead-of-time (AOT) compilation

Ahead-of-time (AOT) 编译是 Angular 框架的一个重要特性,它在构建和优化应用程序时发挥着关键作用。AOT 编译是一种将 Angular TypeScript 代码和模板转换为高效的 JavaScript 和 HTML 的过程,通常在构建过程中执行,而不是在运行时。本文将深入 ......
Ahead-of-time compilation Angular Ahead time

10 Rules of Good and Bad Studying 学习的10条好与坏规则

10 Rules of Good Studying 良好学习的10条法则 Use recall. After you read a page, look away and recall the main ideas. Highlight very little, and never highligh ......
Studying 规则 Rules Good Bad

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' [duplicate]

str | None syntax is only supported in 3.10 or later. Use from typing import Optional name: Optional[str] = None For cases where the right hand side i ......
39 type unsupported TypeError duplicate

《AT_abc322_g Two Kinds of Base》解题报告

好题,考场上想到做法了,没写出来,被薄纱了,记录一下。 主要是做的比较顺一下就想到了。 我们先转换一下 \(f\) 函数 \(f(S,a,b)=\sum\limits_{i=1}^k S_i\times (a^{k-i}-b^{k-i})\) 我们可以发现对于位数 \(>2\) 的,一定满足 \(a ......
报告 AT_abc Kinds Base 322

27、Type关键字

1、是什么? type是go语法里额重要而且常用的关键字,type绝不只是对应于C/C++中的typeof。搞清楚type的使用,就容易理解Go语言中的核心概念struct、interface、函数等的作用 2、怎么玩? (1) 定义结构体 // 使用type定义结构体 type Person st ......
关键字 关键 Type

CF1575I Illusions of the Desert

prologue 还是太菜了,这个 154 行的树剖20min才敲完。 analysis 首先,处理这个给到我们的这个式子。 \[\max(\mid a _ u + a _ v \mid, \mid a _ u - a _ v \mid) \]我们可以分类讨论: \(a > 0, b > 0\): ......
Illusions Desert 1575I 1575 the

The solution of P3012

problem & blog 很明显是个 DP。 于是我们定义 \(dp_{i,j,k}\) 为末尾的字符的 ASCII 码为 \(i\),有 \(j\) 个大写字母,\(k\) 个小写字母。 然后在枚举能接在 \(i\) 之后所有字母即可。 然后考虑 \(dp_{i,j,k}\) 给后面的 DP ......
solution P3012 3012 The of

The solution of ABC144F

都不知道什么时候做的题了 problem & blog 一开始很容易想到枚举断边然后 DP 算代价。 于是很容易想到 DP 状态定义:设 \(dp_u\) 为从 \(u\) 出发到 \(n\) 的期望步数。 那么显然有 \(dp_u = \sum^{v_n}_{v_1} \dfrac{dp_{v_{ ......
solution 144F The ABC 144

CF1425F Flamingoes of Mystery 题解

题目传送门 前置知识 前缀和 & 差分 解法 令 \(sum_k=\sum\limits_{i=1}^{k} a_k\)。考虑分别输入 \(sum_2 \sim sum_n\),故可以由于差分知识得到 \(a_i=sum_i-sum_{i-1}(3 \le i \le n)\),接着输入 \(a_2 ......
题解 Flamingoes Mystery 1425F 1425

ABC211D Number of Shortest paths

分析 一道显然的最短路,用 dijkstra 算法。 计算最短路的同时,保存最短路个数,如果与当前最短路相同,最短路个数相加,否则到这个节点的最短路个数为上一个节点的最短路个数。 Accepted Code #include <bits/stdc++.h> using namespace std; ......
Shortest Number paths 211D ABC

Go - Using Multiple Versions of the Same Dependent Packages

Problem: You want to use multiple versions of the same dependent packages in your code. Solution: Use the replace directive in the go.mod file to rena ......
Dependent Multiple Packages Versions Using

Go - Requiring Local Versions of Dependent Packages

Problem: You want to use local versions of the dependent packages. Solution: Set up Go to use a vendor directory by running go mod vendor. Local versi ......
Dependent Requiring Packages Versions Local

Begin of PHP

打开直接就是一份php代码,分析代码发现需要闯关,一共有五关 直接用ai给我翻译一下 Level 1: 用户需要提供名为 'key1' 和 'key2' 的GET参数。 这两个参数的内容不应相同,但它们的MD5哈希值应该相同。 如果条件满足,将设置变量 $flag1 为True,否则会显示 "nop ......
Begin PHP of

Begin of HTTP

打开 GET get方式上传,直接在网址栏上传即可 POST 先找到secret,一般藏在网页前端代码里 解码得 得F12,用hackbar上传 Cookie 直接点击cookie,把他改成ctfer即 User-Agent 直接点击user-agent然后改变浏览器直接上传,注意此处不能有中文 R ......
Begin HTTP of

Road of the King

2023-09-28 题目 Road of the King 难度&重要性(1~10):8.5 题目来源 luogu 题目算法 (纯)dp 解题思路 一道非常好而有意思的题目,码量巨短。 首先观察数据范围,发现是 \(n\le 300\),考虑 \(O(n^3)\) 的 dp。 主要的难点在于如何去 ......
Road King the of

a Higher Kinded Type package in TypeScript

a Higher Kinded Type package in TypeScript Weykon [一名学生](weykon.com) ​关注他 ​ 展开目录 Higher-Kinded-Types-Toolbelt Higher-Kinded-Types-Toolbelt(gitee) ts-t ......
TypeScript package Higher Kinded Type

34 GB of commited memory but no app actually commited that much

34 GB of commited memory but no app actually commited that much Ask Question Asked 3 years, 8 months ago Modified 3 years, 8 months ago Viewed 493 tim ......
commited actually memory much that

LOJ 6479 [ICPC World Finals 2017] 小小水管工 Son of Pipe Stream 题解

更好的阅读体验 题意 原题链接 给出 \(n\) 个城市和 \(m\) 条双向管道,以及两个实数 \(v\) 和 \(a\)。有两种液体,分别是水和 Flubber(下面简写为 W 和 F)。\(1\) 号和 \(2\) 号城市分别生产 Flubber 和水,并通过管道流入 \(3\) 号城市。对于 ......
题解 水管 Finals Stream World

The Out-of-Memory Syndrome, or: Why Do I Still Need a Pagefile?

The Out-of-Memory Syndrome, or: Why Do I Still Need a Pagefile? July 19, 2016 aziusMemory Management 13 Comments Windows’ memory management—specifical ......
Out-of-Memory Syndrome Pagefile Memory Still