题解 | #游戏海报#
游戏海报
https://www.nowcoder.com/practice/6a6a0e4d6dfa4d89acd73bdfec79cf28
//每个字符串前后都能插s.length()-1个位置 //如果某个字符前或后插入的是本身则一样所以减去这种情况即可 // import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println((s.length() + 1) * 26 - s.length()); } }