oF

D. Sum of XOR Functions

D. Sum of XOR Functions You are given an array $a$ of length $n$ consisting of non-negative integers. You have to calculate the value of $\sum_{l=1}^{ ......
Functions Sum XOR of

CF1877D Effects of Anti Pimples

计算每个数作为最大值的贡献,计算每个数作为最大值的次数。 每个数作为最大值时的贡献显然是 \(a_i\times cnt_i\),\(cnt_i\) 为 \(a_i\) 在多少种染色方案中作为最大值出现,我们主要来对每个数求 \(cnt_i\)。 我们对于从 \(1\) 到 \(n\) 枚举元素,求 ......
Effects Pimples 1877D 1877 Anti

D. Effects of Anti Pimples

D. Effects of Anti Pimples Chaneka has an array $[a_1,a_2,\ldots,a_n]$. Initially, all elements are white. Chaneka will choose one or more different i ......
Effects Pimples Anti of

rdlc报表打印预览时异常 An error occurred during local report processing. The definition of the report 'xxxxxxxxxxxxxxxxxxxx' is invalid

1. rdlc报表打印预览时会出现如下异常: 2. 解决办法: 安装sqlsysclrtypesfor2012.msi并且重启电脑; ......

Solution of 牛客集训提高组第三场2023B 摆渡车

\(\text{Description}\) 有 \(n\) 个乘客要依次经过检票口等待摆渡车,其中第 \(i\) 个人的重量为 \(a_i\),摆渡车载重为 \(M\)。 当乘客 \(i\) 通过检票口时摆渡车来了则他能优先登上摆渡车。 剩下的 \(1 \sim i - 1\) 则尽可能多上人到摆 ......
摆渡 Solution 2023B 2023 of

recursion is detected during loading of “cv2” binary extensions

报错如下 importError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation. 使用版本 linux 需要使用无头版本 4.7.0.72 pyth ......
extensions recursion detected loading binary

cannot read properties of undefined (reading 'substring')

{{ dataList.startTime.substring(0, 10) } 先给要用substring的字符串赋空值 dataList: { startTime: '' //赋值为空 } ......

ORA-12012 Error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_<NN> in 12.2 Database

1 错误 2023-10-08T13:11:12.127171+08:00 Errors in file /oracle/diag/rdbms/arch/ARCH2/trace/ARCH2_j000_305066.trc: ORA-12012: error on auto execute of jo ......
quot AT_OS_OPT_SY ORA Database execute

引入echarts时报错 “TypeError: Cannot read properties of undefined (reading ‘init‘)“的解决方案

用import * as echarts from 'echarts' 替换 import echarts from 'echarts',便可以有效解决 ......

CF963D Frequency of String

Frequency of String 莪怺逺禧歡仳特噻特。 记每次询问中的字符串为 \(t_i\)。约定字符串下标从 \(1\) 开始。 发现 \(\sum |t_i|\) 与 \(|s|\) 和 \(q\) 同阶,考虑使用 bitset 进行字符串匹配。 我们对于每一种字符 \(c\) 开一个 ......
Frequency String 963D 963 CF

[BJDCTF2020]The mystery of ip

原理 X-forwarded-for SSTI模板注入 命令执行 解题过程 进入靶场,没发现什么,照例查看三个页面的原代码 flag页面会打印ip hint页面提示说如何知道我们的ip的 一般是通过数据包的X-Forwarded-for字段知道ip的,那我们抓包,可以发现的确是通过获取这个值来打印出 ......
mystery BJDCTF 2020 The ip

CUDA_ERROR_OUT_OF_MEMORY: out of memory

2023-02-04 22:17:02.457962: I tensorflow/stream_executor/cuda/cuda_driver.cc:831] failed to allocate 152.00M (159383552 bytes) from device: CUDA_ERROR ......

Centos安装网卡驱动make时报错Kernel header files not in any of the expected locations.解决办法之一

Centos安装I219-LM网卡驱动 https://www.cnblogs.com/marixh/p/16927623.html 查询适合我的网卡命令: 1 2 [root@192 src]# lspci|grep net 00:1f.6 Ethernet controller: Intel C ......

8 Innovative BERT Knowledge Distillation Papers That Have Changed The Landscape of NLP

8 Innovative BERT Knowledge Distillation Papers That Have Changed The Landscape of NLP Contemporary state-of-the-art NLP models are difficult to be ut ......

题解 CF600D Area of Two Circles' Intersection

题意简述 给出两个圆的圆心和半径,求两个圆的面积交。 思路 首先通过两圆半径和圆心的距离判断两圆是相离,包含还是相交。相离面积交为 \(0\),包含答案即为较小的圆的面积。当包含时相当于求两个弓形的面积。(见下图) 由正弦定理有: \[\begin{aligned} S_{\text{弓}ACD}& ......
题解 Intersection Circles 600D Area

TypeError: Cannot read properties of undefined (reading '0')

今天取请求返回值时报的一个错误,要取返回值中数组下标为零的数据,错误显示说未定义。检查之后发现要取的数据是请求返回的data中data,少嵌套了一层data导致数据为空报错。(返回数据的路径可以右键Copy property path,这样就不会错了) ......

‘Proof of the pudding’: Global variables and PAGE_EXECUTE_WRITECOPY

‘Proof of the pudding’: Global variables and PAGE_EXECUTE_WRITECOPY UNCATEGORIZED PRODUCTION DEBUGGING, WINDBG LEAVE A COMMENT Today I was teaching a ......

【NIPS2021】Twins: Revisiting the Design of Spatial Attention in Vision Transformers

来自美团技术团队♪(^∀^●)ノシ 论文地址:https://arxiv.org/abs/2104.13840 代码地址:https://git.io/Twins 一、写在前面 本文提出了两种视觉转换器架构,即Twins-PCPVT和Twins-SVT。 Twins-PCPVT 将金字塔 Trans ......

Anyang Institute of Technology Library Appointment

使用方式 在information中填入你的信息 在下午8点之前开启脚本 座位号填写:注意格式!{'一楼':['1A','1B','1C','1D'],'五楼':['05']}开头,位置和排开头写0几。如一楼C区四排三号:1C0403 停顿时间:5秒一次最为合适 图鉴打码平台: 注意事项: 代码运行 ......

[ABC322G] Two Kinds of Base

第一次赛后马上AK ABC,好激动,感觉是这场太水了,一看评分,G有2800?! 感觉这个 Trick 挺有用的:某些变量真正能取到的值其实远远没有给的范围那么大,除了某些特殊情况,而这些特殊情况可以用特殊的方式统计答案。 题意 对于一个非负整数序列 \(S=(S_1,S_2,\dots,S_k)\ ......
Kinds 322G Base ABC 322

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/example/JobMain has been compiled by a more recent version of the Java Runtime (class file version 61.0), 问题的解决(未解决)

问题描述 使用hadoop在虚拟机里面运行打包的程序出错: 问题解决 真的服了,貌似是jdk的版本啥的问题,搜了好多,就是解决不了,求助求助啊! ......

【思维】【DP】ABC298Ex Sum of Min of Length 题解

ABC298Ex 简单题。 因为有 \(\min\) 不好做,容易想到讨论 \(d(i, L)\) 和 \(d(i, R)\) 的大小。 令 \(p = \text{LCA}(L, R)\),\(dep_L > dep_R, dist = dep_L + dep_R - 2\times dep_p\ ......
题解 思维 Length of ABC

【线段树合并】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

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