查询回文子串个数: #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<double,int> pii; const int N = 3e5+5; const int M = 1e6+5; c ...
分类:
其他好文 时间:
2020-10-05 22:16:55
阅读次数:
30
RT 考试的时候口胡出来的,正确性不会证,不过貌似100000内的数都是对的(现在已经会了,在此鸣谢gyz大佬) #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=5e7+10,max ...
分类:
其他好文 时间:
2020-09-24 21:27:32
阅读次数:
46
这个找规律可以发现 结果是 2^n-2 ,但是直接用快速幂的,精度会爆掉(WA了两次),所以快速幂里面的乘法部分用快速乘来展开,解决掉精度的问题 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll qmul(ll ...
分类:
其他好文 时间:
2020-09-18 03:16:57
阅读次数:
28
##1.自建yum仓库,分别为网络源和本地源。 备份yum源配置 [root@centos6 ~]#ll /etc/yum.repos.d/ total 28 -rw-r--r--. 1 root root 1991 Jun 26 2018 CentOS-Base.repo -rw-r--r--. ...
分类:
系统相关 时间:
2020-09-18 01:29:17
阅读次数:
41
问题: roroot@data-server /m/o/tengine [2]# ll 总用量 420K -rw-rw-r-- 1 root root 889 9月 5 2019 AUTHORS.te drwxrwxr-x 6 root root 4.0K 9月 5 2019 auto/ -rw-r ...
分类:
其他好文 时间:
2020-09-18 01:07:32
阅读次数:
86
一、scanf()转换说明中的修饰符 转换说明 含义 * 抑制赋值,示例:“%*d" 数字 最大字段宽度,输入达到最大字段宽度处,或者第一次遇到空白字符为止,示例:"%10s" hh 把整数作为signed char 或者 unsigned char 类型读取 ll 把整数作为long long或者 ...
分类:
其他好文 时间:
2020-09-18 00:34:59
阅读次数:
30
Django应用容器化实践 django项目介绍 项目地址: https://gitee.com/agagin/python-demo.git $ git clone https://gitee.com/agagin/python-demo.git $ cd python-demo/ $ ll to ...
分类:
其他好文 时间:
2020-09-18 00:18:45
阅读次数:
31
处理运维问题的时候发现,文件比磁盘空间大 用 ll 查看文件的时候发现文件有400G,而文件系统只有200G,感觉很奇怪,就去做了个实验 [root@lin ~]# nohup dd if=/dev/zero of=test bs=1M count=100000 & [1] 3497 [root@l ...
分类:
系统相关 时间:
2020-09-17 23:16:16
阅读次数:
41
#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll MAXN=1<<21,MOD1=998244353,MOD2=1004535809,MOD3=469762049; inline ll fpow(l ...
分类:
其他好文 时间:
2020-09-17 22:57:07
阅读次数:
25
题目链接 题意:求本质不同的串有多少 思路:求出最小表示法,如果最小表示法的字符串不同则本质不同。用一个人set记录,最后求得size。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn ...
分类:
其他好文 时间:
2020-09-17 22:13:44
阅读次数:
33