multiply SI units by chocobi

char*p,*q,*u[9],t[99];i,j,b[9];main(v){for(;gets(t);puts("")){for(;v=p=strtok(p?0:t," ");u[i]=p)q=strchr(p,50),b[i=strcspn("coKAskm",p)]+=q?(*q=0,2):1;for(i=7;i--;b[i]=0)j=b[i],v+=j&&printf(" %s%.0d"+!v,u[i],j>1?j:0);}}

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