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

原题:http://codeforces.com/contest/554/problem/A


题目大意: 给一个string,表示一个相册页, 左右都能放photo, 问几种方法.


分析: n个相册夹, 左右都能放, n+1种地方, 26种photo, (n+1)*26, 当然会有重复, 重复是n个. 减去重复的就是答案

   public void solve(int testNumber, InputReader in, OutputWriter out) {
        String s = in.readString();
        int n = s.length();
        out.print((n+1)*26 - n);
    }