football league standings by 51b

a[60000];*p=a+58000;n;main(m,l){for(;~scanf("%s",a+8);bcopy(a,a+4000*a[6]+200**a+10*a[2],40))for(bzero(a,32);scanf("%d-%d",&m,&l)>0;a[1]+=l,*a+=m-l)a[7]++,a[m>l?a[6]+=3,5:m==l?a[6]++,4:3]++,a[2]+=m;for(printf("%*c Pt  W  D  L  F  A  GD\n",strlen(a+8)+5,80);p>a;p-=10)if(p[l=8])for(printf("%d %s",++n,p+8);l--;)printf(l?"%3d":*p?"%+4d\n":"%4d\n",p[l]);}

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

download

return to the top page