prefectual capitals by 51b

char*q,*r,s[9];main(){for(;gets(s);puts(*q?r:s))for(q="ho\x00iw\x00miyag\x00gu\x00toc\x00ib\x00toky\x00kan\x00yaman\x00is\x00ai\x00mie\x00shig\x00hy\x00shim\x00kaga\x00e\x00oki\x00sapporo\x00morioka\x00sendai\x00maebashi\x00utsunomiya\x00mito\x00shinjuku\x00yokohama\x00kofu\x00kanazawa\x00nagoya\x00tsu\x00otsu\x00kobe\x00matsue\x00takamatsu\x00matsuyama\x00naha",r=q+71;*q&&s-strstr(s,q);r+=strlen(r)+1)q+=strlen(q)+1;}

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

download

return to the top page