CF 554A 字符串水题

时间:2022-08-11 20:31:22

给出一个字符串,问再加入一个字母,最多能形成多少种字符串

input
a
output
51
input
hi
output
76

 # include <iostream>
# include <cstdio>
# include <cstring>
# include <algorithm>
# include <cmath>
# define LL long long
using namespace std ; int main ()
{
//freopen("in.txt","r",stdin) ;
char a[] ;
while(scanf("%s" , a) != EOF)
{
int len = strlen(a);
printf("%d\n" , *(len+)-len);
} return ;
}