Rename hint.txt and hint.text to README.md
This commit is contained in:
1 parent
77fb0f11a2
commit
851e191519
166 files changed
No files matched your search
@@ -0,0 +1,57 @@
|
||||
# Best One-liner
|
||||
|
||||
Yusuke Endoh
|
||||
<https://github.com/mame/>
|
||||
Twitter: @mametter
|
||||
|
||||
|
||||
## Judges' comments:
|
||||
### To use:
|
||||
|
||||
make
|
||||
|
||||
./prog <a number of arguments>
|
||||
|
||||
### Try:
|
||||
|
||||
./prog @ @ @ @ @ @
|
||||
|
||||
./prog @ @ @ @ @ @ @ @ @ @ @ @
|
||||
|
||||
./prog $(perl -e 'print "@ " x (2*3*5*7);')
|
||||
|
||||
./prog $(< Makefile)
|
||||
|
||||
### Selected Judges Remarks:
|
||||
|
||||
For this one liner it is best to avoid prime numbers. The output groups
|
||||
factors in the x-y dimensions. How many factors can be represented before you
|
||||
run out of command line argument space? How could you modify the program to
|
||||
experiment with numbers that have more or larger factors?
|
||||
|
||||
|
||||
## Author's comments:
|
||||
Visual factorization 1-liner. Try:
|
||||
|
||||
gcc -o prog prog.c
|
||||
./prog @
|
||||
./prog @ @
|
||||
./prog @ @ @
|
||||
./prog @ @ @ @
|
||||
./prog @ @ @ @ @ @
|
||||
./prog @ @ @ @ @ @ @ @
|
||||
./prog @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
|
||||
|
||||
Inspired by [Animated Factorization Diagrams](http://www.datapointed.net/visualizations/math/factorization/animated-diagrams/).
|
||||
|
||||
|
||||
EDIT: `prog.orig.c` is the original version that I submitted. Gil Dogon kindly improved it during the review. Thank you!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
<!--
|
||||
(c) Copyright 1984-2016, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
|
||||
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
|
||||
|
||||
[judges]: http://www.ioccc.org/judges.html
|
||||
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
-->
|
||||
Reference in new issue
Block a user