Codeforces-SolutionsA/Codes/1829 A - Love Story/1829A.cpp
2023-12-31 14:54:40 +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;
}
}