Codeforces-SolutionsA/1829A Love Story/1829A.cpp
2023-06-07 22:31:31 +06:00

22 lines
362 B
C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
int i, t, count;
cin >> t;
while (t--)
{
string s,c= "codeforces";
cin >> s;
count = 0;
for (i = 0; i < 10; i++)
{
if (s[i] != c[i])
{
count++;
}
}
cout << count << endl;
}
}