Twenty creatures have been encoded according to the following rules.
u = a e i o u
b = b d f h k l t
c = c m n r s v w x z
g = g j p q y,
So, for example cucub would represent camel and buuc
would represent lion.
Can you solve these? (If you find more than one answer, please let me
know!)
bucgucuu
ubugbucb
ubugu
gucubbu
cbucucucuc
ccubu
ucbubugu
cubcu
cubbubuucb
ubbuc
ccucububu
bucucb
buggugubucuc
cuucu
uucbcucb
buccu
gucgubuc
ubbugubuc
buguc
buucuc
(In reply to
solution (computer aided) by Robby Goetschalckx)
My list:
kangaroo
elephant
okapi
gazelle
giraffe
gorilla
rhinoceros
rhinovirus
snake
antelope
cobra
zebra
wildebeest
adder
otter
crocodile
lizard
locust
hippopotamus
moose
mouse
aardvark
burro
horse
pangolin
alligator
liger
tapir
tiger
tigon
beaver
OPEN "bugscubs.txt" FOR INPUT AS #1
OPEN "bugcub.txt" FOR OUTPUT AS #2
DO
LINE INPUT #1, l$
l$ = LTRIM$(RTRIM$(l$))
n = LEN(l$)
PRINT l$
w$ = SPACE$(n)
OPEN "\words\words" + LTRIM$(STR$(n)) + ".txt" FOR BINARY AS #10
DO
GET #10, , w$
IF EOF(10) THEN EXIT DO
w1$ = ""
FOR i = 1 TO LEN(w$)
lt$ = MID$(w$, i, 1)
IF INSTR("aeiou", lt$) THEN
w1$ = w1$ + "u"
ELSEIF INSTR("bdfhklt", lt$) THEN
w1$ = w1$ + "b"
ELSEIF INSTR("cmnrsvwxz", lt$) THEN
w1$ = w1$ + "c"
ELSE
w1$ = w1$ + "g"
END IF
NEXT
IF w1$ = l$ THEN
PRINT #2, w$
END IF
LOOP
CLOSE 10
PRINT #2,
LOOP UNTIL EOF(1)
CLOSE
... then manually selecting the animals (and a virus).
|
Posted by Charlie
on 2007-05-29 12:38:55 |