Merge pull request #1561 from xexyl/konno2011
This commit is contained in:
4 files changed
+46
-7
No files matched your search
@@ -15,21 +15,19 @@ make
|
|||||||
### Try:
|
### Try:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./konno qwerty
|
./try.sh
|
||||||
./konno ioccc
|
|
||||||
./konno "the quick brown fox jumps over the lazy dog"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
This tiny program outputs what looks like a tiny keyboard.\
|
This tiny program outputs what looks like a tiny keyboard.
|
||||||
OK, so the letters are missing. But that is no problem because\
|
OK, so the letters are missing. But that is no problem because
|
||||||
this program identifies the lower case letters that were pressed!
|
this program identifies the lower case letters that were pressed!
|
||||||
|
|
||||||
It is one of those minimal keyboards without all of those
|
It is one of those minimal keyboards without all of those
|
||||||
confusing symbols keys. No shift for SHOUTING CAPS
|
confusing symbols keys. No shift for SHOUTING CAPS
|
||||||
but at least it does not have that useless caps lock key!
|
but at least it does not have that useless CAPS LOCK key!
|
||||||
|
|
||||||
We recommend that you completely deconstruct / figure out
|
We recommend that you completely deconstruct / figure out
|
||||||
how this program works and does what it does. Can you
|
how this program works and does what it does. Can you
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
main(_,l)char**l;{6*putchar(--_%20?_+_/21&56>_?strchr(1[l],_^"pt`u}rxf~c{wk~zyHHOJ]QULGQ[Z"[_/2])?111:46:32:10)^_&&main(2+_,l);}
|
main(_,l)char**l;{if(_>1){6*putchar(--_%20?_+_/21&56>_?strchr(1[l],_^"pt`u}rxf~c{wk~zyHHOJ]QULGQ[Z"[_/2])?111:46:32:10)^_&&main(2+_,l);}}
|
||||||
Executable
+33
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# try.sh - demonstrate IOCCC winner 2011/konno
|
||||||
|
#
|
||||||
|
|
||||||
|
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
|
||||||
|
# this way allows us to have the user specify a different compiler in an easy
|
||||||
|
# way.
|
||||||
|
if [[ -z "$CC" ]]; then
|
||||||
|
CC="cc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
make CC="$CC" all >/dev/null || exit 1
|
||||||
|
|
||||||
|
# clear screen after compilation so that only the entry is shown
|
||||||
|
clear
|
||||||
|
|
||||||
|
|
||||||
|
echo "$ ./konno qwerty" 1>&2
|
||||||
|
./konno qwerty
|
||||||
|
echo 1>&2
|
||||||
|
|
||||||
|
echo "$ ./konno ioccc" 1>&2
|
||||||
|
./konno ioccc
|
||||||
|
echo 1>&2
|
||||||
|
|
||||||
|
echo "$ ./konno \"the quick brown fox jumps over the lazy dog\"" 1>&2
|
||||||
|
./konno "the quick brown fox jumps over the lazy dog"
|
||||||
|
echo 1>&2
|
||||||
|
|
||||||
|
echo "$ ./konno \"\"" 1>&2
|
||||||
|
./konno ""
|
||||||
|
|
||||||
@@ -3226,6 +3226,14 @@ and now it does work with 64-bit systems as well as 32-bit systems.
|
|||||||
Cody added the following words of wisdom: 'this is not a pipe'.
|
Cody added the following words of wisdom: 'this is not a pipe'.
|
||||||
|
|
||||||
|
|
||||||
|
## [2011/konno](2011/konno/konno.c) ([README.md](2011/konno/README.md]))
|
||||||
|
|
||||||
|
Cody fixed the program to not crash if no arg was specified as this was not a
|
||||||
|
documented feature.
|
||||||
|
|
||||||
|
Cody also added the [try.sh](2011/konno/try.sh) script.
|
||||||
|
|
||||||
|
|
||||||
## [2011/richards](2011/richards/richards.c) ([README.md](2011/richards/README.md]))
|
## [2011/richards](2011/richards/richards.c) ([README.md](2011/richards/README.md]))
|
||||||
|
|
||||||
Cody fixed a minor problem that showed up in both linux and macOS. He notes
|
Cody fixed a minor problem that showed up in both linux and macOS. He notes
|
||||||
|
|||||||
Reference in new issue
Block a user