{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eThe value of a string $s$ is equal to the number of different letters which appear in this string.\u003c/p\u003e\n\u003cp\u003eYour task is to calculate the total value of all the palindrome substring.\u003c/p\u003e\n\u003ch3\u003eInput\u003c/h3\u003e\n\u003cp\u003eThe input consists of a single string $|s|(1 \\le |s| \\le 3 \\times 10^5)$.\u003c/p\u003e\n\u003cp\u003eThe string $s$ only contains lowercase letters.\u003c/p\u003e\n\u003ch3\u003eOutput\u003c/h3\u003e\n\u003cp\u003eOutput an integer that denotes the answer.\u003c/p\u003e"}},{"title":"Sample 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003eabac\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e6\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003cbr /\u003e\u003cp\u003e$abac$ has palindrome substrings $a,b,a,c,aba$,ans the total value is equal to $1+1+1+1+2\u003d6$。\u003c/p\u003e"}}]}