Best One-liner

最高のワンライナー

受賞者:Yusuke Endoh

引用元:https://www.ioccc.org/2015/endoh4/prog.c

審査員・作者による説明:https://www.ioccc.org/2015/endoh4/hint.html

動作

コマンドライン引数の数を入力として、ビジュアルに因数分解を行う。

$ gcc -o prog prog.c

$ ./prog @
@ 

$ ./prog @ @
@ @ 

$ ./prog @ @ @
@ @ @ 

$ ./prog @ @ @ @
@ @ 
@ @ 

$ ./prog @ @ @ @ @
@ @ @ @ @ 

$ ./prog @ @ @ @ @ @
@ @ @ 
@ @ @ 

$ ./prog @ @ @ @ @ @ @
@ @ @ @ @ @ @ 

$ ./prog @ @ @ @ @ @ @ @
@ @  @ @  
@ @  @ @  

$ ./prog @ @ @ @ @ @ @ @ @
@ @ @ 
@ @ @ 
@ @ @ 

$ ./prog @ @ @ @ @ @ @ @ @ @
@ @ @ @ @ 
@ @ @ @ @

$ ./prog $(perl -e 'print "@ " x (2*3*5*7);')
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @

@ @ @  @ @ @  @ @ @  @ @ @  @ @ @
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @

@ @ @  @ @ @  @ @ @  @ @ @  @ @ @
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @

@ @ @  @ @ @  @ @ @  @ @ @  @ @ @
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @

@ @ @  @ @ @  @ @ @  @ @ @  @ @ @
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @

@ @ @  @ @ @  @ @ @  @ @ @  @ @ @
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @

@ @ @  @ @ @  @ @ @  @ @ @  @ @ @
@ @ @  @ @ @  @ @ @  @ @ @  @ @ @

解説

シンプルにまとまっている。

Animated Factorization Diagramsにインスパイアされた作品。