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,9,4,0,0,0},<BR>{8,7,0,0,0,6,0,5,0,0,0,2,0,0,1,4,3,0,0,0},<BR>{3,8,6,0,4,1,0,0,2,0,0,7,0,9,0,0,5,0,0,0},<BR>{3,0,6,2,0,4,7,8,0,1,0,0,9,5,0,0,0,0,0,0},<BR>{0,0,0,6,5,0,1,7,2,0,3,0,8,0,0,0,0,4,9.0},<BR>{0,9,6,0,0,4,0,7,1,0,0,0,0,0,5,0,3,0,2,8},<BR>{7,1,0,0,8,9,0,0,6,0,4,2,0,3,0,0,0,0,0,5},<BR>{1,0,0,0,0,2,7,0,0,4,0,0,0,6,0,8,0,3,5,0},<BR>{0,1,4,0,6,0,5,0,9,0,8,0,2,3,0,0,0,7,0,0},<BR>{0,0,0,5,4,0,0,7,1,6,0,0,0,0,0,3,8,2,0,0}}<BR>int a=0;<BR>int b=0;<BR>int c=0;<BR>int d=0;<BR>int e=0;<BR>int f=0;<BR>int g=0;<BR>int h=0;<BR>int i=0;<BR>int j=0;<BR>int k=0;<BR>int l=0;<BR>int m=0;<BR>int n=0;<BR>int o=0;<BR>int p=0;<BR>int q=0;<BR>int r=0;<BR>int s=0;<BR>int t=0;<BR>int I,J,min=0;<BR>for(I=1;I<=100;I++)<BR>{for(J=1;J<=20;J++)<BR>if(M[I][J]=1&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14'=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=2&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14'=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=3&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14'=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=4&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14':o=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=5&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14':o=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=6&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14':o=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=7&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14':o=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=8&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14':o=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}<BR>elseif(M[I][J]=9&a<=8&b<=22&c<=10&d<=8&e<=40&f<=40&h<=1&i<=8&j<=15&k<=19&l<=20&m<=10&n<=2&o<=5&p<=8&q=30&r=10&s=8&t=38)<BR>{min=min+1;printf("(%d,%d)",I,J);<BR>switch(J)<BR>{case'0':a=a+1;break;<BR> case'1':b=b+1;break;<BR> case'2':c=c+1;break;<BR> case'3':d=d+1;break;<BR> case'4':e=e+1;break;<BR> case'5':f=f+1;break;<BR> case'6':g=g+1;break;<BR> case'7':h=h+1;break;<BR> case'8':i=i+1;break;<BR> case'9':j=j+1;break;<BR> case'10':k=k+1;break;<BR> case'11':l=l+1;break;<BR> case'12':m=m+1;break;<BR> case'13':n=n+1;break;<BR> case'14':o=o+1;break;<BR> case'15':p=p+1;break;<BR> case'16':q=q+1;break;<BR> case'17':r=r+1;break;<BR> case'18':s=s+1;break;<BR> case'19':t=t+1;break;<BR> }}}</P>
<>}</P> |