Thu Sep 14, 2006 6:10 am
The Conundrum Lenny wrote:A wise old Kougra has a puzzle for you:
"Suppose each letter is worth a certain number of points: A = 1 point, B = 2, C = 3, and so on. Then, make all vowels negative."
"Now, I'm thinking of three different pets. Each has a number of points based on the letters in the name of their species, and they are all different species. If the total number of points for all three is 203, what are the three pets?"
At this point, you ask the Kougra, "What about the letter Y? Isn't it sometimes considered a vowel?"
The Kougra looks at you. "Y DOES NOT WORK THAT WAY!" he bellows. "Err, sorry for that outburst. Just assume that it isn't a vowel. Oh! And I forgot to mention that the first letter in the species name should have double points."
What are the three pets the Kougra is thinking of? Please submit your answer by putting all three pet names in alphabetical order, with no spaces or punctuation between the names. For example, if the answer was Ixi, Lupe, and Chia, you would submit the answer "chiaixilupe".
Thu Sep 14, 2006 1:20 pm
Thu Sep 14, 2006 2:13 pm
Thu Sep 14, 2006 5:04 pm
the first letter in the species name
Thu Sep 14, 2006 5:07 pm
Thu Sep 14, 2006 6:07 pm
Thu Sep 14, 2006 8:02 pm
gabriellaeve wrote:The numbers you got are not the numbers I got - I got 106, 56, 41 and one of those numbers had 2 possible pets that could make it...
interesting that you came up with a totally different solution...
Thu Sep 14, 2006 9:06 pm
Sun Sep 17, 2006 4:44 am
Sun Sep 17, 2006 10:57 pm
Wed Sep 20, 2006 6:31 pm
Wed Sep 20, 2006 8:38 pm
Wed Sep 20, 2006 9:23 pm
/**
* Produces solutions for Lenny Conundrum 183, using two different interpretations.
*
* @author (Alexander Yuan / AySz88)
* @version (September 14, 2006)
* Released into the public domain.
* Most easily used with BlueJ
*/
public class LennyConund14Sept2006
{
public static String[] species = {"Shoyru", "Kougra", "Kacheek", "Lupe", "Uni", "Gelert", "Eyrie", "Acara", "JubJub", "Grundo",
"Ixi", "Bruce", "Mynci", "Usul", "Wocky", "Xweetok", "Scorchio", "Zafara", "Grarrl", "Aisha", "Kau", "Meerca",
"Flotsam", "Peophin", "Elephante", "Quiggle", "Nimmo", "Chia", "Korbat", "Pteri", "Skeith", "Techo", "Blumaroo", "Kyrii",
"Yurble", "Bori", "Buzz", "Tuskaninny", "Moehog", "Ruki", "Lenny", "Kiko", "Ogrin", "Jetsam", "Gnorbu", "Cybunny", "Poogle",
"Chomby", "Koi", "Tonu", "Hissi", "Lutari", "Draik", "Krawk"};
/**
* Constructor for objects of class LennyConund06Sept2006
* (Acts like a main())
*/
public LennyConund14Sept2006()
{
int[] values = getCounts();
for(int i = 0; i < values.length; i++)
for(int j = i+1; j < values.length; j++) // not starting at 0 because don't need to go through combinations already done
for(int k = j+1; k < values.length; k++) // same
if (values[i] + values[j] + values[k] == 203) System.out.println(species[i] + ", " + species[j] + ", " + species[k]);
System.out.println("Done!");
}
/**
* Produces an array of point values for String[] species
*
* @return an array of integers (point values), in the same order as species
*/
public static int[] getCounts()
{
int[] vals = new int[species.length];
for (int i = 0; i < vals.length; i++) vals[i]=0; //just in case
for (int i = 0; i < species.length; i++)
{
char[] chs = species[i].toLowerCase().toCharArray();
// At first I thought it meant this...
///*
vals[i] += 2*value(chs[0]);
for (int j = 1; j < chs.length; j++)
vals[i] += value(chs[j]);
//*/
// but instead, it could have meant this:
/*
for (int j = 0; j < chs.length; j++)
{
if (chs[j] == chs[0]) vals[i] += 2*value(chs[j]);
else vals[i] += value(chs[j]);
}
*/
}
for (int i = 0; i < vals.length; i++)
System.out.print(vals[i] + ", ");
System.out.print("\n");
return vals;
}
public static int value(char c)
{
if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
return - ((int) c - 96);
else
return (int) c - 96;
}
}
The output wrote:53, 10, 33, 14, -37, 54, 19, 17, -8, 14, -3, -1, 59, -32, 70, 77, 31, 73, 79, 15, 0, 36, 60, 41, 49, 25, 30, 4, 46, 56, 63, 31, -5, 47, 56, -2, 35, 106, 6, 17, 72, 9, 0, 66, 12, 65, 16, 39, -2, 18, 36, 31, 27, 73,
Shoyru, Xweetok, Zafara
Shoyru, Xweetok, Krawk
Gelert, Wocky, Grarrl
Gelert, Xweetok, Lenny
Mynci, Grarrl, Cybunny
Wocky, Xweetok, Pteri
Wocky, Xweetok, Yurble
Wocky, Zafara, Flotsam
Wocky, Flotsam, Krawk
Wocky, Tuskaninny, Draik
Xweetok, Grarrl, Kyrii
Xweetok, Flotsam, Jetsam
Scorchio, Tuskaninny, Jetsam
Grarrl, Tuskaninny, Tonu
Peophin, Pteri, Tuskaninny
Peophin, Yurble, Tuskaninny
Quiggle, Tuskaninny, Lenny
Techo, Tuskaninny, Jetsam
Tuskaninny, Jetsam, Lutari
Lenny, Jetsam, Cybunny
Done!
The output wrote:53, 10, 44, 14, -37, 54, 14, 15, 2, 14, -12, -1, 59, -53, 70, 77, 31, 73, 79, 14, 0, 36, 60, 57, 39, 25, 30, 4, 46, 56, 63, 31, -5, 47, 56, -2, 35, 106, 6, 17, 72, 20, 0, 66, 12, 65, 16, 39, -2, 18, 36, 31, 27, 84,
Shoyru, Kacheek, Tuskaninny
Shoyru, Xweetok, Zafara
Shoyru, Jetsam, Krawk
Gelert, Wocky, Grarrl
Gelert, Xweetok, Lenny
Gelert, Cybunny, Krawk
Mynci, Grarrl, Cybunny
Mynci, Flotsam, Krawk
Wocky, Xweetok, Pteri
Wocky, Xweetok, Yurble
Wocky, Zafara, Flotsam
Wocky, Tuskaninny, Draik
Xweetok, Grarrl, Kyrii
Xweetok, Flotsam, Jetsam
Xweetok, Tuskaninny, Kiko
Scorchio, Tuskaninny, Jetsam
Zafara, Korbat, Krawk
Grarrl, Tuskaninny, Tonu
Quiggle, Tuskaninny, Lenny
Pteri, Skeith, Krawk
Skeith, Yurble, Krawk
Techo, Tuskaninny, Jetsam
Kyrii, Lenny, Krawk
Tuskaninny, Jetsam, Lutari
Lenny, Jetsam, Cybunny
Done!
Wed Sep 20, 2006 11:37 pm
Thu Sep 21, 2006 4:40 am
gabriellaeve wrote:!!! I am soooo excited I broke the top 250 for the first time!!
I used peophin tuskaninny yurble