Files
ioccc/1984/laman/README.md
T
Cody Boone Ferguson 97de8054c9 Typo check entries for 1984
This commit includes the two entries not already done (other changes
besides a final typo and formatting pass) in 1984, anonymous and laman.

This commit means that the entries of 1984 have each had their README.md
file formatted and typo fixed one more time and this should be good for
publication.
2023-10-16 08:21:40 -07:00

1.2 KiB

Third place

Mike Laman

To build:

make all

To run:

./laman <positive number>

INABIAF - it's not a bug it's a feature :-)

This entry will very likely crash or do something else if you run it without an arg. It likely won't do anything at all if the arg is not a positive number.

Try:

The program accepts ONE POSITIVE number. Seeing is believing, so try things like:

./laman 4
./laman 9
./laman 16

This code should run you in circles.

Judges' remarks:

Some new compilers dislike lines 6 and 10 of the source, so we changed them from:

;++f)a[		b<<5|c]		=d++,b+		=e;for(		f=0;f<O
<<5|c]^		=a[b<<5		|c]^=a[		(k-(b+1		))<<5|c]

to:

;++f)a[		b<<5|c]		=d++,b+=	e;for(		f=0;f<O
<<5|c]^=	a[b<<5		|c]^=a[		(k-(b+1		))<<5|c]

I hope you have a C beautifier!

Author's remarks:

No remarks were provided by the author.

This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. You are free to share and adapt this file under the terms of this license:

Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)

For more information, see: https://creativecommons.org/licenses/by-sa/4.0/