摘要: #include<iostream> #include<map>//调用map函数 前面要加Map的头文件 #include<cstdio> using namespace std; map <char,int> num;// 表示以char类型为下标,存储的是int 命名为num(从char到in 阅读全文
posted @ 2022-05-04 20:45 xh小小孩 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cstdio>using namespace std;char a[10000],b[10000];int main(){ scanf("%s\n%s",&a,&b); int len=strlen(a),ans=1; for(int i=0;i 阅读全文
posted @ 2022-05-04 20:43 xh小小孩 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>#include<iostream>using namespace std;int n;int fa[100],root[100],son[100];int depth[100],width[100];int lca(int x,int y)//求出两个结点的最顶端的 阅读全文
posted @ 2022-05-04 20:39 xh小小孩 阅读(21) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示