diff --git a/2012/kang/README.md b/2012/kang/README.md index 7bf0ce86d..8edb92c71 100644 --- a/2012/kang/README.md +++ b/2012/kang/README.md @@ -21,10 +21,15 @@ echo "full spelling of an English cardinal numeral less than a quadrillion" | ./ echo Nineteen hundred and eighty-four | ./kang echo uno | ./kang echo trois | ./kang -echo fier | ./kang +echo vier | ./kang echo "shest'" | ./kang ``` +[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) changed the code to +accept the proper German for four 'vier' where before it was spelt with the +sound of V (fier not vier). Thank you Cody! + + ## Judges' comments: The judges were able to appreciate the Indo-European language family diff --git a/2012/kang/kang.c b/2012/kang/kang.c index e2058d486..53655c26a 100644 --- a/2012/kang/kang.c +++ b/2012/kang/kang.c @@ -1,5 +1,5 @@ long long n,u,m,b;main(e,r)char **r;{f\ -or(;n++||(e=getchar()|32)>=0;b="ynwtsflrabg"[n%=11]-e?b:b*8+ +or(;n++||(e=getchar()|32)>=0;b="ynwtsvlrabg"[n%=11]-e?b:b*8+ n)for(r=b%64-25;e<47&&b;b/=8)for(n=19;n;n["1+DIY/.K430x9\ G(kC["]-42&255^b||(m+=n>15?n:n>9?m%u*~-u:~(int)r?n+ !(int)r*16:n*16,b=0))u=1ll<<6177%n--*4;printf("%llx\n",m);}