摘要: 前置准备工作 sudo apt install clangd clang-format cpplint vscode 插件 clangd, Clang-Format, C/C++, C/C++ Extension Pack,CMake 代码格式化与检查 make check-format -j$(n 阅读全文
posted @ 2023-04-25 14:43 o0yo 阅读(293) 评论(0) 推荐(0)
摘要: 找一个值 int find(const int &val, const std::vector<int> &data) { int l = 0, r = data.size(); while(l < r) { int mid = (l + r) >> 1; if (data[mid] == val) 阅读全文
posted @ 2023-02-23 14:20 o0yo 阅读(22) 评论(0) 推荐(0)
摘要: 求满足 $$ n\cdot a^n\equiv b\pmod{p} $$ 的 $n(1<n<x)$ 的个数,令$n=(p-1)t+k (0\le k <q-1)$,那么 $$ n\equiv b\cdot a^{-k} \pmod{p} $$ 那么枚举 $k$,求满足条件的 $t$ 的个数。 \be 阅读全文
posted @ 2022-09-29 15:11 o0yo 阅读(19) 评论(0) 推荐(0)
摘要: Groups Laws of Composition 1.1 For all $a,b,c\in S$, we have $(ab)c = a = a(bc)$, therefore law of composition in $S$ is associative. Suppose $e$ is t 阅读全文
posted @ 2022-09-19 19:52 o0yo 阅读(33) 评论(0) 推荐(0)