CF 554A 字符串计数问题
来源:互联网 发布:auxre 如何设计软件 编辑:程序博客网 时间:2024/06/01 10:35
题意:有一个字符窜,其长度<=20,现问你插入一个字符,能使其变成多少种不同的字符串;
问题:分析下aa和ab这两个字符串就会发现规律了。#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <queue>
#include <map>
#include <algorithm>
#include <set>
using namespace std;
#define MM(a) memset(a,0,sizeof(a))
typedef long long ll;
typedef unsigned long long ULL;
const int mod = 1000000007;
const double eps = 1e-10;
const int inf = 0x3f3f3f3f;
const int big=50000;
int max(int a,int b) {return a>b?a:b;};
int min(int a,int b) {return a<b?a:b;};
const double pi=acos(-1);
int main()
{
char a[30];
while(~scanf("%s",a))
printf("%d\n",(strlen(a)+1)*26-strlen(a));
return 0;
}
阅读全文
0 0
- CF 554A 字符串计数问题
- 字符串计数问题
- CF 71A [字符串统计]
- cf 550A 字符串统计
- CF 558E(A Simple Task-计数排序+线段树)
- cf #312 E. A Simple Task (线段树+计数排序)
- 字符串计数问题(稳定基因问题)
- CF 348A(Mafia-判定性问题)
- 深搜, 连通区域问题 cf 377A
- cf#312-E-A Simple Task- 线段树+暴力(计数排序)
- CF Round #616 (A,B,C 字符串,贪心,DFS)
- CF 5A Chat Server's Outgoing Traffic(字符串模拟)
- CF 766C - Mahmoud and a Message (DP+字符串)
- CF#801 A. Vicious Keyboard(字符串,水题)
- CF #437 A. Between the Offices【字符串匹配】
- 字符串计数
- 字符串计数
- 字符串计数
- poj 2441
- poj 3154 Corn Fields
- poj 2836 Rectangular Covering
- Codeforces Round #345 (Div. 2) B 思维题
- UVA 11796 Dog Distance 向量+相对运动
- CF 554A 字符串计数问题
- UVA 12304 计算几何+圆模板
- UVA 10652 凸包简单问题
- 不要被games误废前程
- UVA11168 Airport 凸包问题
- UVA 10256 凸包问题-点集划分
- CF
- Book测试题
- LA 4728 旋转卡壳模板