<? $a=fread(STDIN,3);while(1){$t=$i++;while(--$t){$r[$t][$i-$t]=++$v;if($v==$a)break 2;}}foreach(array_reverse($r)as$l)echo implode(" ",$l)."\r\n";
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page