TouchStone
  Please Login
Login Sign Up
距离明年CSP第一轮: ??天 距离CSP第二轮: ??天 距离NOIP还有: ??天
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4000
  • Problem
  • P4000 [Ahoi2013]差异
    Limits : Time Limit : - MS   Memory Limit : 565536 KB
    Judgment Tips : 1s
    Description

    Input Format

    一行,一个字符串S

    Output Format

    一行,一个整数,表示所求值

    Sample Input

    cacao

    Sample Output

    54

    Hint

    2<=N<=500000,S由小写英文字母组成