CF1829A.Love Story

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Timur loves codeforces. That's why he has a string ss having length 1010 made containing only lowercase Latin letters. Timur wants to know how many indices string ss differs from the string "codeforces".

For example string s=s = "coolforsez" differs from "codeforces" in 44 indices, shown in bold.

Help Timur by finding the number of indices where string ss differs from "codeforces".

Note that you can't reorder the characters in the string ss .

输入格式

The first line contains a single integer tt ( 1t10001 \leq t \leq 1000 ) — the number of test cases.

Each test case is one line and contains the string ss , consisting of exactly 1010 lowercase Latin characters.

输出格式

For each test case, output a single integer — the number of indices where string ss differs.

输入输出样例

  • 输入#1

    5
    coolforsez
    cadafurcie
    codeforces
    paiuforces
    forcescode

    输出#1

    4
    5
    0
    4
    9
首页