#D. C - chokudai

    传统题 1000ms 256MiB

C - chokudai

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

C - chokudai

Score : $300$ points

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:

SS

Output

Print the number of ways modulo $(10^9 + 7)$.


chchokudai
3

We have three valid ways:

chchokudai
chchokudai
chchokudai

while the following is invalid:

chchokudai


atcoderrr
0

The answer may be $0$.


chokudaichokudaichokudai
45

2025寒假ATC码力训练营第八次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-1-31 13:00
结束于
2025-1-31 14:30
持续时间
1.5 小时
主持人
参赛人数
5