上一页 1 2 3 4 5 6 7 8 9 10 ··· 87 下一页
摘要: A. Telephone Number #include <bits/stdc++.h> using namespace std; int T, N; string s; int main() { scanf("%d", &T); while(T --) { bool flag = true; sc 阅读全文
posted @ 2019-06-15 10:41 _Zlrrr 阅读(156) 评论(0) 推荐(0)
摘要: 今天被叫找代码里不规范的地方 emmm 这个小插件真滴好用 提高幸福感的事情了 File -> Setting -> Pugins 搜索 alibaba 第一个就是啦 安装好重启就可以了 用的时候右键项目 编码规约扫描 阅读全文
posted @ 2019-06-14 11:14 _Zlrrr 阅读(5163) 评论(0) 推荐(0)
摘要: 关于 Kafka Kafka 是最初由 Linkedin 公司开发,是一个分布式、支持分区的(partition)、多副本的(replica),基于 zookeeper 协调的分布式消息系统,它的最大的特性就是可以实时的处理大量数据以满足各种需求场景:比如基于 hadoop 的批处理系统、低延迟的实 阅读全文
posted @ 2019-06-13 11:20 _Zlrrr 阅读(338) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-06-09 12:23 _Zlrrr 阅读(200) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-06-09 12:17 _Zlrrr 阅读(522) 评论(0) 推荐(0)
摘要: 字符串哈希就是把一个字符串变成 long long 存起来, 然后对 1e9 + 7 取模, $b[i] = s[i]*{131}^{s.length() - 1 - i}$ ,sum[i] 存的是 b[i] 的前缀和 如果出现哈希冲突的话 我们需要采取的措施是算出这个字符串的两个哈希值然后进行比较 阅读全文
posted @ 2019-05-28 21:09 _Zlrrr 阅读(839) 评论(2) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-05-25 16:57 _Zlrrr 阅读(226) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-05-22 22:04 _Zlrrr 阅读(204) 评论(0) 推荐(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 阅读全文
posted @ 2019-05-19 18:59 _Zlrrr 阅读(260) 评论(2) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-05-18 18:26 _Zlrrr 阅读(891) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 87 下一页