您的位置:首页 > 其它

CodeForces-554A Kyoya and Photobooks

2015-08-13 21:36 211 查看
#include <iostream>
#include <cstdio>
#include <cstring>

using namespace std;

const int maxn = 20 + 5;
char str[maxn];
int cnt;

int main()
{
while(~scanf("%s", str))
{
int len = strlen(str);
cnt = 26 * (len + 1) - len;
printf("%d\n", cnt);
}
return 0;
}

题意:输入一行字符串(只含小写26个英文字母),之后字符串的前后中间都可以插入一个字母。问最多有几种不同的插法。

题解:水题....26 * (长度+1) - 原长
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: