摘要:
一些函数的一些性质 取整函数 \(\lfloor x \rfloor\) (一)\(\lfloor x \rfloor <= x < \lfloor x \rfloor +1\) (二)对任意x与正整数a,b$\lfloor \lfloor \frac \rfloor /b\rfloor=\lflo 阅读全文
摘要:
主页面: // // ViewController.m // myUItest // // Created by bytedance on 2021/1/19. // #import "ViewController.h" #import "Contact.h" #import "KCContactG 阅读全文
摘要:
// // secondViewController.m // test // // Created by bytedance on 2021/1/20. // #import "secondViewController.h" #import <Masonry/Masonry.h> @interfa 阅读全文
摘要:
// // ViewController.m // myUItest // // Created by bytedance on 2021/1/19. // #import "ViewController.h" @interface ViewController () @property UITex 阅读全文
摘要:
CodeCraft 20 (Div. 2) D. Nash Matrix 原题链接:https://codeforces.com/contest/1316/problem/D 走到自己位置上的一定是'X',然后同一路径上的目的地一定一样,可以从每个‘X’开始把同一目的地的都搜过去,处理出来,然后 1 阅读全文
摘要:
CodeCraft 20 (Div. 2) C. Primitive Primes 原题链接:https://codeforces.com/contest/1316/problem/C 题意 $给出两个本原多项式f(x)和g(x),h(x)=f(x) g(x)$ $然后给出一个素数p,问h(x)中哪 阅读全文
摘要:
原题链接:https://codeforces.com/contest/1305/problem/F 随机数过题法,记录一下。clock函数和mt19937学到了。 阅读全文
摘要:
线性基 $知道这玩意很久了,这次来总结一下。$ 定义 基: $在线性代数中,基(也称为基底)是描述、刻画向量空间的基本工具。向量$$空间的基是它的一个特殊的子集,基的元素称为基向量。向量空间中任意一个元$$素,都可以唯一地表示成基向量的线性组合。如果基中元素个数有限,就称向量$$空间为有限维向量空间 阅读全文
摘要:
其实就是找连通块的数量。 注意set和vector这些容器不能边修改边遍历,需要在修改之前将迭代器往后加一。 阅读全文
摘要:
```cpp #pragma GCC optimize(3) #include typedef long long ll; using namespace std; const int N=2e3+5; const int mod=998244353; int n,m,d; int a[N],c[N]; int main() { scanf("%d%d%d",&n,&m,&d); int sum= 阅读全文
摘要:
$预先枚举1e10以内所有数的k次方,然后每一个ai都去找他所有的1e5以内的倍数,更新答案。$ $复杂度\sqrt[k]{1e10}\times{\sqrt{1e5}\times{2}}$ cpp include typedef long long ll; using namespace std; 阅读全文