fix Makefile and README.md for 2015/endoh4
This commit is contained in:
1 parent
9efc6a763d
commit
559542ebf4
2 files changed
+37
-32
No files matched your search
+25
-17
@@ -1,38 +1,47 @@
|
||||
# Best One-liner
|
||||
|
||||
Yusuke Endoh
|
||||
<https://github.com/mame/>
|
||||
Twitter: @mametter
|
||||
Yusuke Endoh
|
||||
<https://github.com/mame/>
|
||||
Twitter: @mametter
|
||||
|
||||
## To build:
|
||||
# To build:
|
||||
|
||||
make all
|
||||
```sh
|
||||
make
|
||||
```
|
||||
|
||||
### To run
|
||||
### To run:
|
||||
|
||||
./prog <a number of arguments>
|
||||
```sh
|
||||
./prog <a number of arguments>
|
||||
```
|
||||
|
||||
### Try:
|
||||
|
||||
./prog @ @ @ @ @ @
|
||||
```sh
|
||||
./prog @ @ @ @ @ @
|
||||
|
||||
./prog @ @ @ @ @ @ @ @ @ @ @ @
|
||||
./prog @ @ @ @ @ @ @ @ @ @ @ @
|
||||
|
||||
./prog $(perl -e 'print "@ " x (2*3*5*7);')
|
||||
./prog $(perl -e 'print "@ " x (2*3*5*7);')
|
||||
|
||||
./prog $(< Makefile)
|
||||
./prog $(< Makefile)
|
||||
```
|
||||
|
||||
### Alternate code
|
||||
|
||||
An alternate version of this entry, prog.alt.c, is provided. This alternate code does not contain improvements suggested by Gil Dogon.
|
||||
An alternate version of this entry, `prog.alt.c`, is provided.
|
||||
This alternate code does not contain improvements suggested by Gil Dogon.
|
||||
|
||||
To compile this alternate version:
|
||||
|
||||
make alt
|
||||
```sh
|
||||
make alt
|
||||
```
|
||||
|
||||
Use `prog.alt` as you would `prog` above.
|
||||
|
||||
### Selected Judges Remarks:
|
||||
## Judges' comments:
|
||||
|
||||
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
|
||||
@@ -56,11 +65,10 @@ Inspired by [Animated Factorization Diagrams](http://www.datapointed.net/visuali
|
||||
|
||||
EDIT: `prog.alt.c` is the original version that I submitted. Gil Dogon kindly improved it during the review. Thank you!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
<!--
|
||||
## Copyright:
|
||||
|
||||
(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