Type: Default 1000ms 256MiB

我爱执信

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

Timi有一个由小写英文字母组成的,长度为66的字符串ss。Timi热爱着执信中学,因此他想知道字符串ss和字符串"zhixin"有多少处索引(即下标)不同。

例如,字符串ss="zhexue"与"zhixin"有33个索引处不同,如粗体字母所示。

输入格式

第一行包含一个整数 tt,表示测试用例的数量。

每个测试用例占一行,包含一个字符串ss,由66个小写英文字母组成。

输出格式

对于每个测试用例,输出一个整数,表示字符串ss与"zhixin"不同的索引的数量。

5
zhexue
xinxin
zhizhi
xinzhi
zhixin
3
3
3
6
0

提示

【数据范围】

对于所有数据,保证:1t10001\leq t \leq 1000

2023 C23本部测试 - 2

Not Attended
Status
Done
Rule
IOI
Problem
7
Start at
2023-12-9 14:00
End at
2023-12-9 17:00
Duration
3 hour(s)
Host
Partic.
11