Given a string, we need to find the total number of its distinct substrings. 给你一个字符中,统计有多少个不同的子串InputT- number of test cases. T<=20;Each test case con ...
分类:
其他好文 时间:
2020-02-20 19:55:37
阅读次数:
59
整理了一些Java方面的架构、面试资料(微服务、集群、分布式、中间件等),有需要的小伙伴可以关注公众号【程序员内点事】,无套路自行领取 更多优选 "一口气说出 9种 分布式ID生成方式,面试官有点懵了" "3万字总结,Mysql优化之精髓" "为了不复制粘贴,我被逼着学会了JAVA爬虫" "技术部突 ...
分类:
数据库 时间:
2020-02-20 13:18:27
阅读次数:
110
1 #include <set> 2 #include <map> 3 #include <cmath> 4 #include <queue> 5 #include <vector> 6 #include <cstdio> 7 #include <cstdlib> 8 #include <cstri ...
分类:
编程语言 时间:
2020-02-20 00:06:01
阅读次数:
67
"传送门" 一道憨憨的 Lca 模板题。 Code ...
分类:
其他好文 时间:
2020-02-19 22:25:52
阅读次数:
70
js中的原型与原型链详解 记住下面三句话就可以理解原型: 1. 所有的函数数据类型都天生自带一个属性Prototype(原型)这个属性的值是一个对象,浏览器会默认给他开辟一个堆内存 2. 在浏览器给prototype开辟的堆内存当中有一个天生自带的属性是constructor,这个属性存储的值是当前 ...
分类:
Web程序 时间:
2020-02-19 20:48:14
阅读次数:
79
水题。还是一道hash题。 #include<iostream> using namespace std; int main() { int map[128] = {0}; char c; while (scanf("%c",&c) != EOF) map[c]++; while (map['P'] ...
分类:
其他好文 时间:
2020-02-19 19:11:30
阅读次数:
70
水题,又是一道hash题。 #include<iostream> #include<cctype> using namespace std; int hashtable[26]= {0}; int main() { char c; while(scanf("%c",&c)!=EOF) { if(is ...
分类:
其他好文 时间:
2020-02-19 18:53:37
阅读次数:
81
#include <stdio.h>int main(){ int t; while(scanf("%d",&t)!=EOF) { if(t>=0&&t<=100) { t=t/10; switch(t) { case 10: case 9: printf("A\n"); break; case 8 ...
分类:
其他好文 时间:
2020-02-19 10:27:30
阅读次数:
74
前面题看了懒得写了 直接从D开始 "D.Fill The Bag" 题解 贪心,用$have[i]$ 数组记录$2^i$ 有多少个,然后对于这个$n$ ,从最低位开始处理,因为每一位最多只需要1个,那么当前有的我们直接用上即可,剩下没有用上的,我们把$2^i$ 合并到$2^{i+1}$ 去,注意个数 ...
分类:
其他好文 时间:
2020-02-19 00:48:57
阅读次数:
58
1 编辑测试文件 [root@hz-kvm cephdisk3]# cat > 1.txt <<EOF> 120Tib> EOF 2 显示文件[root@hz-kvm cephdisk3]# cat 1.txt120Tib 3 过滤字母到其他文件[root@hz-kvm cephdisk3]# ca ...
分类:
系统相关 时间:
2020-02-19 00:33:09
阅读次数:
103