11/05/14 12:48:12.60 Gsp+5y+U
fp=fopen(argv[1],"r"); line=0;
while(fgets(buf,127,fp)!=NULL){
i=9;
while(i<27){
n[i/3-3]=10*(buf[i]-48)+buf[i+1]-49; i+=3; }
i=0;
while(i<6){
j=0; m1=n[i];
while(j<6){
if(i!=j){
m2=n[j]; cnt[m1][m2]++; } j++; } i++; }
line++; }
fclose(fp);