CF1829A.Love Story
普及/提高-
通过率:0%
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Timur loves codeforces. That's why he has a string s having length 10 made containing only lowercase Latin letters. Timur wants to know how many indices string s differs from the string "codeforces".
For example string s= "coolforsez" differs from "codeforces" in 4 indices, shown in bold.
Help Timur by finding the number of indices where string s differs from "codeforces".
Note that you can't reorder the characters in the string s .
输入格式
The first line contains a single integer t ( 1≤t≤1000 ) — the number of test cases.
Each test case is one line and contains the string s , consisting of exactly 10 lowercase Latin characters.
输出格式
For each test case, output a single integer — the number of indices where string s differs.
输入输出样例
输入#1
5 coolforsez cadafurcie codeforces paiuforces forcescode
输出#1
4 5 0 4 9