摘要: preface 前五道还是很好想,第三和第四道代码不好写(可能是很久没写这种题了),第五道可能熬夜脑壳炸了 A 将末尾的us换成i B 如果两个字符相同且相邻,那么就可以改变前一个,抹除后一个 很容易想到从某个位置有两个相同的之后,之后的都可以被抹除 但很快你也能想到,抹除最后一个时,前一个可以和前 阅读全文
posted @ 2025-02-10 23:31 归游 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 状态最拉跨的一场,很难受,脑袋转不动 A 注意数据范围,简单构造 J 按照题意模拟 点击查看代码 #include<bits/stdc++.h> using namespace std; int t; int n,m; string s; void solve(){ cin>>n; cin>>s;s 阅读全文
posted @ 2025-02-10 23:09 归游 阅读(2) 评论(0) 推荐(0) 编辑
摘要: K 小学加减乘除法,取最大值 I 利用后缀数组的思想(前缀也可以) #include<bits/stdc++.h> using namespace std; int n; string s; int t; string x="uwawauwa"; void solve(){ cin>>n; cin> 阅读全文
posted @ 2025-02-09 12:07 归游 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Part 3: Quantum Mechanics 3.1 Mathematical Postulates of Quantum Mechanics Quantum States: Quantum states are described by unit vectors in a complex H 阅读全文
posted @ 2025-02-09 10:17 归游 阅读(7) 评论(0) 推荐(0) 编辑
摘要: NOTE This is a summary of the book "Mathematics of Quantum Mechanics". Part 1: Complex Numbers 1.1 What is a Complex Number? Imaginary Unit: Defined a 阅读全文
posted @ 2025-02-07 23:31 归游 阅读(9) 评论(0) 推荐(1) 编辑
摘要: 第1章:向量介绍 1.1 向量与线性组合 向量加法:\(\mathbf{u} + \mathbf{v} =\begin{bmatrix} u_1 + v_1 \\ u_2 + v_2 \\ \vdots \\ u_n + v_n \end{bmatrix}\) 标量乘法:\(c\mathbf{v} 阅读全文
posted @ 2025-02-05 10:30 归游 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Preface Quantum Computer is such a computing device that can efficiently simulate any other physical system In this part,we'll discuss what a quantum 阅读全文
posted @ 2025-02-04 10:14 归游 阅读(8) 评论(0) 推荐(0) 编辑
摘要: A 将数据存入数组,根据下标取最小值 B 根据题意,相邻的两个都是朋友,给出朋友关系,构造满足所有关系的排列 假如此时 2 3 1 4 5 满足朋友关系,那么5之后的第一个数字一定是4的朋友,以此递推,就可以得到排列 所以现在的问题在于,如何得到这个最初始的排列? 由于数据较小,我们以1为其他4个数 阅读全文
posted @ 2025-02-02 21:24 归游 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 问题描述 给定一个正整数 \(n\),求当 \(k\) 从 \(1\) 到 \(n\) 时,\(\left\lfloor \frac{n}{k} \right\rfloor\) 的不同取值个数。 分析 理解 \(\left\lfloor \frac{n}{k} \right\rfloor\) 的含义 阅读全文
posted @ 2025-01-31 22:27 归游 阅读(10) 评论(0) 推荐(0) 编辑
摘要: M 检验字符的字符是否能构成nowcoder 两种方法 检验各个字母出现的次数是否与nowcoder相等 按照字典序排序后是否与cdenoorw相同 #include <bits/stdc++.h> using namespace std; string s; int main() { cin>>s 阅读全文
posted @ 2025-01-31 17:47 归游 阅读(11) 评论(0) 推荐(0) 编辑