ggs

吴添添  •  2年前


include<bits/stdc++.h>

using namespace std; string str,s[20],wzh; bool check(string a,string b) {

int len=a.size();
for(int i=0;i<len;i++)
{
	if(a[i]!=b[i])
	{
		return false;
	}
}
return true;

} int main() {

cin>>str;
for(int i=1;i<=10;i++)
{
	cin>>s[i];
}
for(int j=1;j<=10;j++)
{
	for(int i=0;i<80;i++)
	{
		wzh[i%10]=str[i];
		if(i%10==9)
		{
			if(check(wzh,s[j]))
			{
				cout<<i/10;
				break;
			}
		}	
	}
}	
return 0;

} //01234567890123456789012345678901234567890123456789012345678901234567890123456789


评论: