solution p9194 the of

ORA-01502: index 'xxx' or partition of such index is in unusable state

SELECT 'alter index ' ||INDEX_NAME || ' REBUILD;' INDEX_NAME, INDEX_TYPE, TABLESPACE_NAME, TABLE_TYPE, STATUS FROM DBA_INDEXES WHERE STATUS = 'UNUSABL ......
index partition unusable 01502 state

Power of Matrix

prologue 因为格式问题被卡了一小时的人是谁我不说。 analysis 首先这个题目如果我们暴力计算的话,时间复杂度是不允许的(矩阵乘法前面有巨大的常数)。 那么我们就考虑怎么用一些巧妙地方法去计算。我们就可以采取两次分治地思想,递归求解。 以下结论显然成立,读者自证不难: \[A^1 + A ......
Matrix Power of

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 短窗口, 也就是片段. 我们预测窗口中间时刻的面部表情. 我们把表情看做一个全端点的向量 (后面我们会看这是什么的一种刻画面部) 一旦我们网络训完, 我们回各个时间点同时生成, 并行. 即使不需要过去的帧画面, 依然生成很稳定的画面. ( ......

Landsat 8 Collection 2 Tier 1 calibrated top-of-atmosphere (TOA) reflectance

Landsat 8 Collection 2 Tier 1 calibrated top-of-atmosphere (TOA) reflectance. Calibration coefficients are extracted from the image metadata. See Chan ......

Count of Sub-Multisets With Bounded Sum

Count of Sub-Multisets With Bounded Sum You are given a 0-indexed array nums of non-negative integers, and two integers l and r. Return the count of s ......
Sub-Multisets Multisets Bounded Count With

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

CF1854C Solution

题目链接 题意 给定大小为 \(n\) 的正整数集合 \(S\),\(S\) 中的每个数在 \(1\sim m\) 之间。 每一秒进行如下操作: 从 \(S\) 中等概率随机选择一个数 \(x\)。 将 \(x\) 从 \(S\) 中删去。 若 \(x + 1\leq m\) 且 \(x + 1\n ......
Solution 1854C 1854 CF

CF585F Digits of Number Pi

CF585F Digits of Number Pi 更好的阅读体验 观察数据范围,考虑数位 DP。 首先把长串中 \(len\geq\lfloor \frac{d}{2}\rfloor\) 的串提出来,塞进一个 trie 里,然后建立 ACAM,然后直接 DP 就行了。 设 \(f_{i,j,0/ ......
Digits Number 585F 585 CF

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

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

MySQL解决查询语句1111 - Invalid use of group function错误

是因为mysql查询语句的字段当中有聚合函数,where条件中不能用聚合函数的计算值作为查询条件,否则会出现:> 1111 - Invalid use of group function 错误。 可以使用having解决。 补充:这里主要要清楚where和having的作用以及区别:“WHERE”  ......
语句 function 错误 Invalid MySQL

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

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

Display volume of alsa card on i3status

Display volume of alsa on i3status System: gentoo Desktop: i3wm here is my i3status config of volumes: order += "volume master" order += "volume speak ......
i3status Display 3status volume status

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

CF1303D Fill The Bag

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

Educational Codeforces Round 96 (Rated for Div. 2) A. Number of Apartments

有三种建筑:三室厅、五室厅、七室厅。每个房间严格有一扇窗户。现在有 \(n\) 扇窗户,询问完全用完这些窗户的情况下,\(3, 5, 7\) 室厅各有多少间。输出任意一种答案,或者回答不可能。 假设一定有解,显然可以选择 \(mod\) 任意一个数贪心,不妨选最小的 \(3\) 。假设答案为 \(a ......

Trying to backward through the graph a second time

原因是把创建loss的语句loss_aux = torch.tensor(0.)放在循环体外了,可能的解释是第一次backward后把计算图删除,第二次backward就会找不到父节点,也就无法反向传播。参考:https://stackoverflow.com/questions/55268726/ ......
backward through Trying second graph

Codeforces Round 684 (Div. 2) B. Sum of Medians

定义 \(median\) 是一个非降序数组中第 \(\lceil \frac{n}{2} \rceil\) 的数。数组从 \(1\) 开始标号。 给两个数 \(n\) 和 \(k\) ,并给出一个长为 \(nk\) 的数组 \(a\) 。 需要分出为 \(k\) 个大小为 \(n\) 的数组,每个 ......
Codeforces Medians Round 684 Div

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架

"MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架" 一个多智能体元编程框架,给定一行需求,它可以返回产品文档、架构设计、任务列表和代码。这个项目提供了一种创新的方式来管理和执行项目,将需求转化为具体的文档和任务列表,使项目管理变得高效而 ......

ORA-28001: the password has expired Smartbi配置数据连接

smartbi config配置数据库连接,报获取数据库连接失败 ORA-28001: the password has expired 密码超时 登录数据库服务器,使用 sqlplus / as sysdba命令,进入oracle数据库 使用:select * from dba_profiles ......
password expired Smartbi 数据 28001

Python中安装库时报错:WARNING: Running pip as the ‘root‘ user can result in broken permissions and conflicti

作者:hvjg2578 围观群众:13095 更新于 2022-10-11 10:59:17 我们在安装python库时,可能会遇到这样的报错:WARNING: Running pip as the ‘root‘ user can result in broken permissions and c ......
permissions conflicti 时报 WARNING Running

《Mastering the FreeRTOS Real Time Kernel》读书笔记(4)软定时器

5.软件定时器管理 软件定时器由FreeRTOS内核实现,并受其控制。它们不需要硬件支持,也与硬件计时器或硬件计数器无关。 软件定时器功能是可选的。包括软件定时器功能:1。作为项目的一部分,构建FreeRTOS源文件FreeRTOS/source/timers.c。2.在FreeRTOSConfig ......
定时器 Mastering FreeRTOS 笔记 Kernel

Codeforces Round 695 (Div. 2) A. Wizard of Orz

有 \(n\) 个数位板摆放成一条直线,每个数位板可以显示 \(0 \sim 9\) 的数字。最开始数位板显示的是 \(0\) 。每秒数位板上的数字都会加 \(1\) , \(9\) 的下一个数字是 \(0\) 。当一个数位板被暂停,它上面的数字将会定格在当前秒。 你必须对某个数位板执行一次暂停,在 ......
Codeforces Wizard Round 695 Div

CF1886B Fear of the Dark 题解

Question Monocarp 在一个二维平面上,他的初始点在 \(O=(0,0)\) ,他需要到 \(P(P_x,P_y)\) 不幸的是,他能走的范围在两个圆内,我们给出了两个圆的坐标 \(A=(A_x,A_y)\) ,\(B=(B_x,B_y)\) 两个圆的半径相同,我们需要找到最小的半径让 ......
题解 1886B 1886 Fear Dark

CF1886A Sum of Three 题解

Question 给定一个正整数 N ,我们需要找三个不同的整数x,y,z,使得 N = x+y+z,其中下x,y,z不能被三整除 solution 我们把N%3会有一些余数,我们针对余数来讨论,其中我们只关注xyz的余数 如果余数为0 那么也就可能是1+1+1,或者2+2+2,但是考虑到xyz不同 ......
题解 1886A Three 1886 Sum

CF1886D Monocarp and the Set

Questions Monocarp 有 \(n\) 个整数和一个集合,他需要把这 \(n\) 个数添加到集合中,每次添加一次 除了第一次,每次添加元素都会输出一个字符 如果当前添加的元素比原有的元素都要小,那么输出 \(>\) 如果当前添加的元素比原有的元素都要大,那么输出 \(<\) 否则输出 ......
Monocarp 1886D 1886 and Set