摘要:
今天被叫找代码里不规范的地方 emmm 这个小插件真滴好用 提高幸福感的事情了 File -> Setting -> Pugins 搜索 alibaba 第一个就是啦 安装好重启就可以了 用的时候右键项目 编码规约扫描 阅读全文
摘要:
关于 Kafka Kafka 是最初由 Linkedin 公司开发,是一个分布式、支持分区的(partition)、多副本的(replica),基于 zookeeper 协调的分布式消息系统,它的最大的特性就是可以实时的处理大量数据以满足各种需求场景:比如基于 hadoop 的批处理系统、低延迟的实 阅读全文
摘要:
A - Automatic Judge #include <bits/stdc++.h> using namespace std; int vis[1200],timing[1200]; int main() { int T; scanf("%d",&T); while(T--) { int n,m 阅读全文
摘要:
A. Nate and Actual 3D Girls #include <bits/stdc++.h> using namespace std; const int maxn = 2e5 + 10; int N, M, K; string s, t; map<char, int> mp; int 阅读全文
摘要:
字符串哈希就是把一个字符串变成 long long 存起来, 然后对 1e9 + 7 取模, $b[i] = s[i]*{131}^{s.length() - 1 - i}$ ,sum[i] 存的是 b[i] 的前缀和 如果出现哈希冲突的话 我们需要采取的措施是算出这个字符串的两个哈希值然后进行比较 阅读全文
摘要:
A. A pile of stones #include <bits/stdc++.h> using namespace std; int N; string s; int main() { scanf("%d", &N); cin >> s; int len = s.length(); int a 阅读全文
摘要:
A. Eating Soup #include <bits/stdc++.h> using namespace std; int N, M; int main() { scanf("%d%d", &N, &M); int ans; if(N == M) ans = 0; else if(M == 0 阅读全文
摘要:
A. Remainder #include <bits/stdc++.h> using namespace std; string s; int N, x, y; int main() { scanf("%d%d%d", &N, &x, &y); cin >> s; for(int i = 0; i 阅读全文
摘要:
A. Hasan the lazy judge #include <bits/stdc++.h> using namespace std; inline int read(){ int x=0; bool f=0; char ch=getchar(); while (ch<'0' || '9'<ch 阅读全文
摘要:
A. Zoning Restrictions Again You are planning to build housing on a street. There are nn spots available on the street on which you can build a house. 阅读全文