diff --git a/2012/kang/README.md b/2012/kang/README.md index 56a09a2e5..624e94265 100644 --- a/2012/kang/README.md +++ b/2012/kang/README.md @@ -1,7 +1,8 @@ # Best short program - Seonghoon Kang - +Seonghoon Kang + + ## To build: @@ -73,7 +74,7 @@ It does *not* accept some spelt numbers, which I found mostly irrelevant: This program is quite portable, only requiring the following: * The signature `int main(int, int)` should be accepted by the linker. (Original - version only) + version only). * `char` should be at least 8 bits long (as dictated by the standard), `int` should be at least 32 bits long, `long long` should be at least 64 bits long. * Both the compiler and execution environment should use an ASCII-compatible @@ -120,17 +121,21 @@ Other obfuscations are more subtle: But the most important obfuscation is the clever construction of lookup table. The program uses 11 different characters required for recognizing 22 lexemes: +``` zero one tw- th(i)r- fo(u)r- fi- six- seven- eigh- nin- ten eleven twelve hundred(s) thousand(s) million(s) billion(s) trillion(s) a and -teen -ty +``` So that they are internally represented as like: +``` r n tw- tr- fr- f- s- sn- g- nn- tn ln twl nr(s) tsan(s) lln(s) blln(s) trlln(s) a an -tn -ty +``` The stemmer recognizes the longest matching prefix, so every lexeme can be recognized by at most three characters (e.g. `trl` instead of `trlln`). This is diff --git a/tmp/winners.csv b/tmp/winners.csv index d8d21919d..88299765e 100644 --- a/tmp/winners.csv +++ b/tmp/winners.csv @@ -164,7 +164,7 @@ Sean Barrett,Sean_Barrett,http://world.std.com/~buzzard,null,buzzard@world.std.c Sean Dorward,Sean_Dorward,null,null,null,null,null,null Sebastian Deorowicz,Sebastian_Deorowicz,http://sun.aei.polsl.pl/~sdeor/,null,sdeorowicz@gmail.com,null,null,null Selene Makarios,Selene_Makarios,http://www.bungalow.com/,null,null,null,null,null -Seonghoon Kang,Seonghoon_Kang,null,null,kang.seonghoon@mearie.org,null,null,null +Seonghoon Kang,Seonghoon_Kang,null,http://mearie.org,kang.seonghoon@mearie.org,null,null,null Shinichiro Hamaji,Shinichiro_Hamaji,null,shinichiro.hamaji@gmail.com,null,null,null Sjoerd Mullender,Sjoerd_Mullender,http://www.cwi.nl/~sjoerd/,null,Sjoerd.Mullender@cwi.nl,null,null,null Someone Anonymous,Anonymous_2015,null,null,hirekokeshi@gmail.com,null,@hirekoke,null diff --git a/winners.html b/winners.html index 4457e8f28..35d55256c 100644 --- a/winners.html +++ b/winners.html @@ -685,7 +685,8 @@ Contest