All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General > Cryptography
Bugs and Cubs (Posted on 2007-05-29) Difficulty: 3 of 5
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

See The Solution Submitted by Josie Faulkner    
Rating: 4.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution re: solution (computer aided) | Comment 3 of 12 |
(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
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2017 by Animus Pactum Consulting. All rights reserved. Privacy Information