代码如下 #include<iostream> using namespace std; const int MAXN = 1000 + 5; struct Node // 进去一个出去一个,很明显,队列 { int num; // 保存进去的数字 }; struct Node queue[MAXN ...
分类:
其他好文 时间:
2020-09-24 21:25:32
阅读次数:
42
非常简单的一道题,此博客的意义在于一个细节 (简单的式子推导略过) 代码 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> #include<queue> #includ ...
分类:
其他好文 时间:
2020-09-23 23:46:38
阅读次数:
43
高精度阶乘 #include<iostream> #include<cstring> #include<cstdio> #include<string> #include<queue> #include<stack> #include<algorithm> #include<vector> #inc ...
分类:
其他好文 时间:
2020-09-21 11:51:39
阅读次数:
30
AT4996 [AGC034F] RNG and XOR(FWT) 题目大意 给定 \(n\) 和一个长度为 $2^n$ 的数组 \(A\) (从 $0$ 标号). 有一个初始为 $0$ 的变量 \(x\) . 不断操作, 每次操作以 \(\frac {A_i}{\sum_{j=0}^{2^n-1} ...
分类:
其他好文 时间:
2020-09-18 17:22:08
阅读次数:
46
import requests import time import threading from queue import Queue import random import sys def getheaders(): user_agent_list = [ "Mozilla/5.0 (Wind ...
分类:
其他好文 时间:
2020-09-18 00:18:15
阅读次数:
29
1 #include <iostream> 2 #include<binaryNode.hpp> 3 #include<cassert> 4 #include<queue> 5 #include<vector> 6 7 using namespace std; 8 9 template<class ...
分类:
编程语言 时间:
2020-09-17 23:50:30
阅读次数:
40
题意:给定n个数构建完全二叉树,输出完全二叉树的层序遍历 思路:二叉树的中序遍历建树即为输出 #include<cstdio> #include<queue> #include<vector> #include<algorithm> using namespace std; const int N ...
分类:
其他好文 时间:
2020-09-17 23:04:06
阅读次数:
30
使用注解方式实现RabbitMq整合 在进行该部分实验前把之前的交换器和队列删除,在RabbitMq管理后台完成。 1、RabbitMq配置类 @Configuration public class RabbitMQConfig { /** * 定制JSON格式的消息转换器 * @return */ ...
分类:
编程语言 时间:
2020-09-17 22:24:43
阅读次数:
45
Usage Usage: python sqlmap.py [options] Options: -h, --help Show basic help message and exit -hh Show advanced help message and exit --version Show pr ...
分类:
数据库 时间:
2020-09-17 19:59:29
阅读次数:
36
本文源码:GitHub·点这里 || GitEE·点这里 一、队列结构 1、基础概念 队列是一种特殊的线性表,特殊之处在于它只允许在表的前端(front)进行删除操作,而在表的后端(rear)进行插入操作,和栈一样,队列是一种操作受限制的线性表。进行插入操作的端称为队尾,进行删除操作的端称为队头。 ...
分类:
编程语言 时间:
2020-09-17 19:20:37
阅读次数:
29