Codeforces Round #309 (Div. 2) A. Kyoya and Photobooks

简介:

题目链接:http://codeforces.com/contest/554/problem/A

#include <iostream>
#include <cstring>
using namespace std;

int main()
{
    char s[25];
    while(cin>>s)
    {
        int len=strlen(s);
        int sum=26*(len+1)-len;
        cout<<sum<<endl;
    }
    return 0;
}
目录
相关文章
|
7月前
|
人工智能 算法 BI
Codeforces Round #179 (Div. 2)A、B、C、D
我们每次加进来的点相当于k,首先需要进行一个双重循环找到k点和所有点之间的最短路径;然后就以k点位判断节点更新之前的k-1个点,时间复杂度降到O(n^3),而暴力解法每次都要进行floyd,时间复杂度为O(n^4);相比之下前述解法考虑到了floyd算法的性质,更好了运用了算法的内质。
32 0
|
7月前
Codeforces Round #178 (Div. 2)
在n条电线上有不同数量的鸟, Shaass开了m枪,每一枪打的是第xi条电线上的第yi只鸟,然后被打中的这只鸟左边的飞到第i-1条电线上,右边的飞到i+1条电线上,没有落脚点的鸟会飞走。
27 0
|
8月前
Codeforces Round #742 (Div. 2)
Codeforces Round #742 (Div. 2)
27 0
|
9月前
|
机器学习/深度学习 人工智能
Codeforces Round 889 (Div. 2)
Codeforces Round 889 (Div. 2)
130 0
|
12月前
Codeforces Round 799 (Div. 4)
Codeforces Round 799 (Div. 4)
91 0
Codeforces Round 835 (Div. 4)
Codeforces Round 835 (Div. 4) A~F题解
87 0
|
人工智能