docs: 添加仓库地址到README;chore: 整理实验分析;feat: Kruskal最小生成树与图存储结构

This commit is contained in:
2025-12-14 14:06:31 +08:00
parent be03307655
commit f2b8d1fe4c
52 changed files with 4600 additions and 291 deletions
+32
View File
@@ -0,0 +1,32 @@
#include <stdio.h>
#include <string.h>
int main()
{
int T;
scanf("%d", &T);
while (T--)
{
char str[10001];
scanf("%s", str);
int count = 0;
int len = strlen(str);
// 遍历字符串,统计小写字母个数
for (int i = 0; i < len; i++)
{
char c = str[i];
// 判断是否为小写字母
if (c >= 'a' && c <= 'z')
{
count++;
}
}
printf("%d\n", count);
}
return 0;
}