Codeforces-SolutionsA/1829A Love Story/1829A.cpp

22 lines
362 B
C++
Raw Normal View History

2023-06-08 00:31:31 +08:00
#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;
}
}