AtCoder Beginner Contest 211
翻译中…
Problem Statement
翻译中…
You are given a string $S$.
How many ways are there to choose and underline eight of its characters so that those characters read c, h, o, k, u, d, a, i from left to right?
Since the count can be enormous, print it modulo $(10^9 + 7)$.
翻译中…
Constraints
翻译中…
$8 \leq |S| \leq 10^5$$S$consists of lowercase English letters.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
S
翻译中…
Output
翻译中…
Print the number of ways modulo $(10^9 + 7)$.
翻译中…
样例
Input #1
chchokudai
Output #1
3
We have three valid ways:
chchokudai
chchokudai
chchokudai
while the following is invalid:
chchokudai
Input #2
atcoderrr
Output #2
0
The answer may be $0$.
Input #3
chokudaichokudaichokudai
Output #3
45
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。