Topological Sorting by o-cn

<?for(;mb_ereg("(\d+): *
",$a=preg_replace("/\\b$b[1]\\b/",'',$a.=fread(STDIN,999)),$b);)echo"$b[1]
";

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

download

return to the top page