码迷,mamicode.com
首页 >  
搜索关键字:const    ( 26295个结果
联赛测试 3.22
A. x 很容易可以想到分解质因数,使用并查集把相同因子的放一块儿,计算出最终有 \(cnt\) 个块,答案为 \(2^{cnt}-2\) (可以理解为为每个块都有左集合与右集合两个选择,而最终出现2个空集的情形,需要从答案中减去) 然鹅,事情并没有这么简单~ 因为 \(a_i\) 上界为 \(10 ...
分类:其他好文   时间:2021-04-02 13:15:06    阅读次数:0
管道通信(上)
管道通信(上) (一)概述 Linux Shell 都允许重定向,而重定向使用的就是管道。例如,ps | grep vsftpd 。管道是单向的、先进先出的、无结构的、固定大小的字节流。管道是Linux由Unix那里继承过来的进程间的通信机制,它是Unix早期的一个重要通信机制。其思想是,在内存中创 ...
分类:其他好文   时间:2021-04-01 13:26:09    阅读次数:0
【CF566E】Restoring Map(构造)
有一棵$n$个点的树,乱序给出与每个点距离小于等于$2$的点集。求构造一棵合法的树。 ...
分类:其他好文   时间:2021-04-01 13:20:09    阅读次数:0
AT5295 [ABC154F] Many Many Paths
原题链接 题意:斯努克站在一个二维平面上。在一次操作中,他可以向 \(x\) 轴正方向或是 \(y\) 轴正方向移动一步。定义函数 \(f(r,c)\) 为通过上述操作,斯努克从 \((0,0)\) 走到 \((r,c)\) 的方案总数。现在给定 \(r_1,r_2,c_1\) 和 \(c_2\), ...
分类:其他好文   时间:2021-04-01 13:11:49    阅读次数:0
vue函数节流防抖
//js /** * 函数节流 * @param func * @param wait * @returns {function(...[*]=)} */ export const throttle = (func, wait = 1500) => { let timeout; return fun ...
分类:其他好文   时间:2021-04-01 12:56:04    阅读次数:0
【TS】对已有的模块导出新类型
declare module '@alipay/bigfish' { function useModel<S>(initialState: string); function request<S>(url: string, options: any); export const history: { ...
分类:其他好文   时间:2021-04-01 12:52:52    阅读次数:0
非递归 前序/中序/后序 遍历二叉树
非递归前序遍历二叉树 1 void preTraverse(const BiTree &T){ 2 //initialStack(stack) 3 BiTree stack[MAX]; 4 int top=-1; 5 BiTree p=T; 6 //while(!stackEmpty(stack)| ...
分类:其他好文   时间:2021-03-31 12:27:44    阅读次数:0
二分查找
#include <iostream> void print_arrs(const int *, int N); void sort_arrs(int *pInt, int N); constexpr int COUNT = 10; int search_data(const int *pInt, ...
分类:其他好文   时间:2021-03-31 12:20:32    阅读次数:0
C++Template学习
template<typename T> void funcTmp(T a, T b) { cout << "this is yiban" << endl; } template<> void funcTmp(const char* a, const char* b) { cout << "this ...
分类:编程语言   时间:2021-03-31 12:19:34    阅读次数:0
react 懒加载和错误边界
import React, {Component,lazy, Suspense} from 'react' const About = lazy(() => import(/*webpackChunkName: 'about'*/'./child.jsx')) class Layout extend ...
分类:其他好文   时间:2021-03-30 13:48:04    阅读次数:0
26295条   上一页 1 ... 29 30 31 32 33 ... 2630 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!