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) - 原长
相关文章推荐
- 【POJ 1260】Pearls
- Linux C编程的DEBUG宏
- 可修改主席树
- linux 之静默安装oracle
- HDU5389.Zero Escape
- 黑马程序员-----------C语言基础-----------数组
- C++ STL::bitset
- ZOJ 3469 Food Delivery
- 自动装箱拆箱
- 通过应用程序域AppDomain加载和卸载程序集
- Hibernate 基本配置和应用
- sql中的exists
- hdu 2515 Yanghee 的算术
- poj 3345 Bribing FIPA 【树形dp + 01背包】
- 让 Terminal/vim 使用 Solarized 配色
- 深入理解TCP(二)
- J-Link clone问题
- Network()
- [转]详细解析Java中抽象类和接口的区别
- HDU 1870 愚人节的礼物