Matrix Product by sadakiyo

a;b=1024;c;o;d;e;f;g;h;j;i,x,y;l,m,n,k;r=1;t;z=-1;V[2][16][16];main(q){for(;q;o=c){r=!memset(V,z,b*2*r);q=read(0,&c,1);d=q&&'0'<=c?d*10+c-'0':d;t=o*c;e=(c<48&&47<o)||!q;V[i][x][y]=e?d:z;d*=!e;f=10==c;r=!q||(100==t);x=b-t?x+e:0;x=r?0:x*!f;i=r?0:b-t?i*!f:1;y=r?0:y+f;for(h=!j?2:0,n=m=0;r&&z<V[1][m][n];n++,m=0,h=1)for(g=1;z<V[1][m][n];m++,g=0,h=2){for(a=l=0;-1<V[0][l][n];l++)a+=V[0][l][n]*V[1][m][l];j=printf("%s%s%d","\n\n"+h," "+g,a);}}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page