majority 134c arc the

js/ts文件中,导入i18n报错:Must be called at the top of a `setup` function

import { useI18n } from 'vue-i18n'; const { t } = useI18n(); 会在非组件情况下报错: 此时我们需要将上述导入方式改为: import i18n from '@/lang/i18n';//@/lang/i18n为语言包位置 const { t ......
function 文件 called setup i18n

mac解决pycharm运行报错NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled

mac解决pycharm运行报错NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled 第一步:卸载 urllib3 pip3 uninstall url ......

CodeForces 1847F The Boss's Identity

[洛谷传送门](https://www.luogu.com.cn/problem/CF1847F "洛谷传送门") [CF 传送门](https://codeforces.com/problemset/problem/1847/F "CF 传送门") 我们首先观察 $a$ 的形态。令题面中给出的 $ ......
CodeForces Identity 1847F 1847 Boss

Atcoder ARC159C Permutation Addition

设 $s=\sum\limits_{i = 1}^n a_i$,考虑加上排列 $p$,那么 $s\leftarrow s + \frac{n\times (n + 1)}{2}$。 当有解时,因为 $a_i$ 相等,所以有 $s\bmod n = 0$。 考虑 $n \bmod 2 = 1$ 时,$ ......
Permutation Addition Atcoder 159C ARC

QNX-9—QNX官网文档翻译—Resource Managers—The resource manager library

注:本文翻译自QNX Software Development Platform --> Programming --> Getting Started with QNX Neutrino --> Resource Managershttp://www.qnx.com/developers/docs ......
QNX Managers Resource resource manager

Restart the journey

在开始新的旅途之前,明确一些事情。 做题方法论比学习方法论重要。 如何解题: 泛化模型,寻找特殊性质。 性质的发现:共性,特殊性,结构。 考虑限制的松紧,为什么只在这个情况下能做。 规约到之前遇见过的问题,需要对基本模型的认知。 从简单的,边界的情况入手。 利用几何/代数直观。 考虑 “剖面”。 枚 ......
Restart journey the

【论文解析】EJOR 2011 A clustering procedure for reducing the number of representative solutions in the Pareto Front of multiobjective optimization problems

> 论文名称:A clustering procedure for reducing the number of representative solutions in the Pareto Front of multiobjective optimization problems ### 动机 假 ......

Can't import the named export 'inject' from non EcmaScript module (only default export is available)

最近在开发一个electron应用,需要用到ssh功能。 经过挑选,最终使用的是node-ssh这个包。 然而,使用的过程并不顺利,执行npm run electron:serve运行出错,报错信息如下(仅截取部分): error in ./node_modules/node-ssh/lib/esm ......
export EcmaScript available 39 default

Atcoder ARC161C Dyed by Majority (Odd Tree)

首先能发现对于树的叶子节点,与其连边的只有其父节点,所以该节点最终状态为 $\text{B/W}$ 其父节点的状态就一定为 $\text{B/W}$。 然后考虑它自己是什么状态,因为同样的与其连边的只有其父节点,所以其父节点最终状态为 $\text{B/W}$ 其状态就为 $\text{B/W}$。 ......
Majority Atcoder 161C Dyed Tree

Atcoder ARC160C Power Up

首先有个很朴素的 DP: 设 $f_{i, j}$ 为有 $j$ 个数 $i$ 能为数 $i + 1$ 产生贡献的方案数和,这个状态的转移方程要好想一些: $f_{i, \frac{j + c_i}{2}} = \sum\limits_{k = j}^{2\times10^5} f_{i - 1, ......
Atcoder Power 160C ARC 160

Atcoder ARC163C Harmonic Mean

首先考虑到分数裂项:$\frac{1}{x} - \frac{1}{x + 1} = \frac{1}{x\times (x + 1)}$,那就有 $\frac{1}{x} = \frac{1}{x + 1} + \frac{1}{x\times (x + 1)}$。 于是构造方法就很明显了啊,首先 ......
Harmonic Atcoder 163C Mean ARC

Atcoder ARC119D Grid Repainting 3

看到方格图,便想到把行和列当成图上的点,把红点当作连接行列的边,这样就能构造出二分图。 考虑把每个连通的二分图单独拎出来考虑,能发现对其建一个生成树,只要 $u$ 节点的操作与 $son_u$ 的操作相反,则 $son_u$ 是不会干扰到 $u$ 的。 这则说明每个连通的二分图消完后肯定是只剩一行或 ......
Repainting Atcoder 119D Grid ARC

Atcoder ARC162C Mex Game on Tree

发现如果子树内如果存在 $k$ 则 $mex$ 的值必定不为 $k$,所以 Bob 的策略即为在空位填上 $k$。 Alice 的决策便可以知道是在 Bob 出手前就要让这个子树满足条件,不让 Bob 破坏这个子树,考虑需满足哪些条件: - 至多 $1$ 个空位,否则 Bob 可以把 $k$ 填在子 ......
Atcoder 162C Game Tree ARC

P6545 [CEOI2014] The Wall 总结记录--zhengjun

[link](https://www.luogu.com.cn/problem/P6545) 思维好题。 - 找到结论,即包住所有点的充要条件 两次最短路的思想确实很妙。 > 结论:找到 $(0,0)$ 到每个标记方格左上角的最短路,那么一定存在包住这些路径的最优解。 证明考虑反证,比较好证的。 # ......
zhengjun P6545 6545 2014 CEOI

CentOS grub引导损坏 Minimal BASH-like line editing is supported.For the first word.TAB lists possible command completions.Anywhere else TAB lists possible deyice or file completions.

这是 GRUB boot loader 的命令行提示。它可能出现在以下情况中: 系统没有正确引导 启动项配置不正确 硬盘分区有问题 GRUB 配置有误等 为了解决这个问题,你需要做的是恢复 GRUB。以下是一般步骤,适用于大多数 Linux 发行版(如 Ubuntu): 启动 Live CD - 首 ......
completions possible lists BASH-like TAB

[LeetCode] 2024. Maximize the Confusion of an Exam

A teacher is writing a test with n true/false questions, with 'T' denoting true and 'F' denoting false. He wants to confuse the students by maximizing ......
Confusion LeetCode Maximize 2024 Exam

【ARC104E】Random LIS 题解(期望)

[LG 传送门](https://www.luogu.com.cn/problem/AT_arc104_e) | [AtC 传送门](https://atcoder.jp/contests/arc104/tasks/arc104_e)。 期望。 ## Solution - 显然我们会发现 $n$ 非 ......
题解 Random 104E ARC 104

this version of the Java Runtime only recognizes class file versions up to 55.0

问题: 运行SpringBoot demo时报错: this version of the Java Runtime only recognizes class file versions up to 55.0 at 原因: 编译版本和运行版本不一致,具体原因是编译版本高于运行版本,SpringBo ......
recognizes versions Runtime version class

How To Fix the ERR_OSSL_EVP_UNSUPPORTED Error in Node.js

Fix the ERR_OSSL_EVP_UNSUPPORTED Error There are two ways to fix the ERR_OSSL_EVP_UNSUPPORTED error: Upgrade Node.js by downloading and installing the ......

打印机出现slide the green tab on drum unit

以兄弟MFC-7380打印机为例,相信很多使用耗材伙伴们在兄弟品牌打印机遇过这种情况:打印机屏幕出现“硒鼓!滑动硒鼓单元上的绿色滑块”字眼。 为什么会出现“硒鼓!滑动硒鼓单元上的绿色滑块”的提示?意味着要清洁鼓架上的电晕丝,按照图示来回滑动几次绿色滑块,把电晕丝上的灰尘清理掉。 (注:来回滑动几次将 ......
打印机 slide green drum unit

在idea/webstorm等terminal运行命令报错:Command rejected by the operating system没有权限【已解决】

在idea/webstorm等编译器terminal窗口运行命令报错:Command rejected by the operating system没有权限,Command rejected by the operating system ......
operating webstorm terminal rejected 命令

ARC107F Sum of Abs

# ARC107F Sum of Abs **[题目传送门——洛谷](https://www.luogu.com.cn/problem/AT_arc107_f)** **[题目传送门——AtCoder](https://atcoder.jp/contests/arc107/tasks/arc107_ ......
107F ARC 107 Sum Abs

[LeetCode] 2600. K Items With the Maximum Sum

There is a bag that consists of items, each item has a number 1, 0, or -1 written on it. You are given four non-negative integers numOnes, numZeros, n ......
LeetCode Maximum Items 2600 With

【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误

[500 The page cannot be displayed because an internal server error has occurred.] [scriptProcessor could not be found in "fastCGI" application config... ......
displayed internal occurred 错误 Service

Lord Of The Root: 1.0.1实战

##**前言** Description:我创建这台机器是为了帮助其他人学习一些基本的CTF黑客策略和一些工具。我瞄准了这台机器,使其在难度上与我在OSCP上破解的机器非常相似。 这是一个引导到根计算机将不需要任何来宾交互。 有两种设计的权限提升方法。 ##**靶机环境** kali 192.168 ......
实战 Lord Root The Of

Can't import the named export XXXX from non EcmaScript module (only default export is available)的解决方法

# 解决方法: 1. https://stackoverflow.com/questions/69343038/cant-import-the-named-export-xxxx-from-non-ecmascript-module-only-default-expo 2. https://gith ......
export EcmaScript available default 方法

Cannot create a component of type 'ahb_mst_burst_incr' because it is not registered with the factory

运行VCS仿真报错: Cannot create a component of type 'ahb_mst_burst_incr' because it is not registered with the factory 但是我在test class中已经注册了,为什么还报错呢? 报错就说明没有找 ......

[ARC096F] Sweet Alchemy

# [ARC096F] Sweet Alchemy [洛谷:[ARC096F] Sweet Alchemy](https://www.luogu.com.cn/problem/AT_arc096_d) [Atcoder:[ARC096F] Sweet Alchemy](https://atcoder ......
Alchemy Sweet 096F ARC 096

webclient download file The remote server returned an error: (403) Forbidden,

class WebpWebClient:WebClient { protected override WebRequest GetWebRequest(Uri address) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create( ......
webclient Forbidden download returned remote

POJ 3728 The merchant

题意好像不清楚: > 给定一棵 $n​$ 个点的树,每个点有点权 $val_i​$,现在有 $q​$ 个询问,每次询问给出 $u,v​$,设 $u​$ 到 $v​$ 的路径上的点编号为 $a_1,a_2\cdots a_{len}​$,求 $\max\limits_{1 \le x #include ......
merchant 3728 POJ The