#include<iostream> #include<cstdio> #include<set> #define MAXSIZE 51 using namespace std; set<int> s[MAXSIZE];/*建立set数组,自动除去重复的并且升序排好,然后利用count函数即可,知识 ...
分类:
其他好文 时间:
2020-11-07 16:42:41
阅读次数:
18
快读与快写 < 快读 > 为什么要用快读? 虽然scanf的读入速度比cin快,不过当我们遇到一些特别恶心的题目,哪怕用了sanf仍然会超时,而这时候就需要用上快读了。 快读的大体思路: 众所周知(反正我不知道),单个字符的读入速度要比读入数字的速度快,所以我们用 getchar() 以字符形式先读 ...
分类:
其他好文 时间:
2020-11-06 02:34:54
阅读次数:
16
类别 操作符 算术操作符 +、 –、 *、 /、 %(取模) 字符串操作符 + 字符串连接 +=字符串连接复合 布尔操作符 !、 &&、 || 一元操作符 ++ 、 -- 、 +(一元加)、 -(一元减) 关系比较操作符 < 、 <= 、 > 、>=、 != 、 == 、 、 !== 按位操作符 ~ ...
分类:
编程语言 时间:
2020-11-06 02:05:47
阅读次数:
19
目前接入点大致分为硬AP和软AP两种。 硬AP是指拥有独立的CPU,能独立进行数据的相关处理,是一个独立完全的模块,常见的为市面上的无线路由器。 而软AP即无线网卡,通过驱动配置其工作模式为AP模式,实现接入点的功能,目前市面上多数的无线网卡都支持软AP的功能。以下为两者的对比表格 硬AP 软AP ...
分类:
其他好文 时间:
2020-11-04 18:52:20
阅读次数:
18
原文链接:https://without.boats/blog/two-memory-bugs-from-ringbahn/ 原文标题:Two Memory Bugs From Ringbahn 公众号:Rust 碎碎念 翻译: Praying 在实现ringbahn[1]的时候,我引入了至少两个 ...
分类:
其他好文 时间:
2020-11-04 17:55:28
阅读次数:
13
#include <bits/stdc++.h> using namespace std; const int mn=1e6+7; const int mod=1e9+7; int v[mn],p[mn],s[mn]; int main() { int n,tot=0; cin>>n; for(in ...
分类:
其他好文 时间:
2020-11-02 10:09:59
阅读次数:
47
CentOS7 | 常用操作合集 🔶修改网卡名为eth0的形式 安装界面中,按TAB键进入到内核参数配置界面,并手工输入如下参数,输入完毕后按回车键继续: net.ifnames=0 biosdevname=0 🔶配置网络 nmtui cat /etc/sysconfig/network-scr ...
分类:
其他好文 时间:
2020-11-01 22:19:47
阅读次数:
29
Reporting and analytics with Power BI home page This topic points you to resources that you can use to learn more about the business intelligence (BI) ...
分类:
其他好文 时间:
2020-11-01 09:20:29
阅读次数:
20
https://codeforces.com/problemset/problem/1436/D 这题就是让村名尽可能集中在叶子上,但是可能叶子上本来就有很多村民,就是这样。 假设 1. mx[x]为在x点可以抓到的最多的人 2. chal[x]为 在x点还差chal[x]人就可以让x下面所有叶子都 ...
分类:
其他好文 时间:
2020-10-31 01:31:44
阅读次数:
13
完全背包模型 二维 #include<iostream> using namespace std; const int N = 4010; const unsigned int mod = 1 << 31; unsigned int f[N][N]; int n; int main(){ cin > ...
分类:
其他好文 时间:
2020-10-29 09:20:50
阅读次数:
15