Merge pull request #146 from xexyl/2012-kang

Fix German vier in 2012/kang
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-03-24 16:01:32 -07:00
commit 955d888268
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -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
+1 -1
View File
@@ -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);}