P

大意 :在一段小写字母组成的字符串中插入一个小写字母,问有几种情况

    Input
a
Output
51
Input
hi
Output
76

对于每个字母,在左右插空有一种重复的情况,去除即可

为 26*(n+1)-n

#include<stdio.h>
#include<string.h>
int main(){
    char ch[25];
    gets(ch);
    printf("%d",25*(strlen(ch)+1)+1);
} 
原文地址:https://www.cnblogs.com/-ifrush/p/10066214.html