find minimum cyclic parts by o-cn

<?=preg_replace('/(.+?)\1*
/','\1
',fread(STDIN,1e5));

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

download

return to the top page