
3、常用技巧
常用技巧
Estrellas_
I am the king of the world.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pat a1057 栈【分块思想】
题目:https://www.nowcoder.com/pat/5/submission-detail/64563013https://pintia.cn/problem-sets/994805342720868352/problems/994805417945710592一、问题描述Stack is one of the most fundamental data struc...原创 2020-02-02 22:54:46 · 312 阅读 · 0 评论 -
并查集的基本操作
1、初始化for(int i=1,i<=N;i++) { father[i]=i;} 2、查找int findFather(int x) { while(x!=father[x]) { x=father[x]; } return x;}递归版本:int findFather(int x) //递归版本 { if(x==father[x...原创 2020-01-21 18:08:06 · 303 阅读 · 0 评论 -
PAT b1040 有几个PAT ---【打表法】
题目链接:https://pintia.cn/problem-sets/994805260223102976/problems/994805282389999616字符串APPAPT中包含了两个单词PAT,其中第一个PAT是第 2 位(P),第 4 位(A),第 6 位(T);第二个PAT是第 3 位(P),第 4 位(A),第 6 位(T)。现给定字符串,问一共可以形成...原创 2020-01-06 16:50:03 · 235 阅读 · 0 评论 -
2的幂表
CC150:原创 2019-03-06 20:32:03 · 1277 阅读 · 0 评论