摘要:
问题描述 Bob 最新学习了一下二进制前缀编码的那一套理论。二进制编码是指一个由$n$个互不相同的二进制串$s_1,s_2,...,s_n$构成的集合。而如果一套编码理论满足,对于任意的 \(i\not=j\),$s_i$不是$s_j$的前缀,那么我们称它为前缀编码。 Bob 发现了一张上面写有$n 阅读全文
摘要:
It is well known that Keima Katsuragi is The Capturing God because of his exceptional skills and experience in ''capturing'' virtual girls in gal game 阅读全文
摘要:
Nastya came to her informatics lesson, and her teacher who is, by the way, a little bit famous here gave her the following task. Two matrices \(A\) an 阅读全文
摘要:
一般来说,对于n个一次方程和n个未知数,可以通过高斯消元法来判断这个方程无解,有唯一解还是有多解。对于一个有唯一解的方程,我们可以通过程序实现加减消元和代入消元,以此来求得这个方程的解。 先贴一个解普通方程的模板: void Gauss(int m, int n) { int i = 0, j = 阅读全文
摘要:
T1:NOIP2016 车站分级 思路:拓扑排序,注意建虚拟源点。 #include <bits/stdc++.h> using namespace std; struct node { int to, nxt; }e[2000005]; int n, m, head[1000005], ind[1 阅读全文