UVa644 - Immediate Decodability

2014-11-23 21:12:43 · 作者: · 浏览: 13
#include 
#include 
int main()
{
	char s[100][100];
	char str[100];
	int cas=1;
	int n;
	int i,j,k;
	while(scanf("%s",str)!=EOF)
	{
		n=0;
		while (str[0]!='9')
		{
			strcpy(s[n++],str);
			scanf("%s",str);
		}
		int flag=1;
		for(i=0;i