605
   

NeoPets Riddles (Lenny Conundrums) and Answers Here

 
 
willzi8
 
  1  
Reply Thu 1 Oct, 2009 03:50 pm
I'm thinking I'm going to write a python program when I have the time B)
0 Replies
 
willzi8
 
  1  
Reply Fri 2 Oct, 2009 04:23 pm
Got the program written (I will post the code on Wed. if anyone is interested) and my answer also adds up to 33 (9***7) Very Happy
Is this what anyone else got?
bobdude1
 
  1  
Reply Wed 7 Oct, 2009 03:38 am
I'm only getting a sum of 30 (****3)
0 Replies
 
bobdude1
 
  1  
Reply Wed 7 Oct, 2009 03:48 am
I believe (****5) sum of 33 is not the right answer.

I got an area of 37871.9, which you can't go much lower...
0 Replies
 
lennyfan
 
  1  
Reply Wed 7 Oct, 2009 11:17 am
Got my e-mail saying I had the correct answer.

Looks like only 479 correct answers this week - the prize was over 4000 NP.

For those that are interested, my VBScript code to find the answer was:
dim x, y, z
dim mincost
mincost = 99500
for x = 0 to 100
for y = 0 to 189
for z = 0 to 335
if 121 * x + 64 * y + 36 * z >= 12055 then
if 995 * x + 525 * y + 299 * z < mincost then
mincost = 995 * x + 525 * y + 299 * z
Response.Write x & ", " & y & ", " & z & " - " & mincost & " NP<br>"
Response.Flush
end if
end if
next
next
next

I started by finding the total square inches required. There are 54 Neopian species, 10 members of each species, plus the host for a total of 541 pets eating. At 70 square inches each, this is 37870 square inches total.

The pizzas come in three sizes, 22" at 995 NP, 16" at 525 NP and 12" at 299 NP. The area of each of these is PI * radius * radius, so the areas are 121 * PI, 64 * PI and 36 * PI. Dividing each of these into 37870 (and rounding up), I find that if I buy 100 large, 189 medium or 335 small pizzas, I have enough pizza, so I used those values as the upper bounds of my three loops. The lower bounds are all zero, as I can choose to buy no pizzas of any given size.

I made x, y and z the number of large, medium and small pizzas. Then the condition is that 121 * PI * x + 64 * PI * y + 36 * PI * z >= 37870. To simplify, I divided both sides by PI and got 121x + 64y + 36z >= 37870/PI = 12054.395. Now the left side will be an integer, so to be >= 12054.395, it must be >= 12055. This is where my outer if statement came from.

To find the minimum cost, I just started with the cost of 100 large pizzas or 99500. For every combination of x, y and z that gave me enough pizza, I checked to see if the cost (995x + 525y + 299z) was smaller than the smallest cost I had found so far.

The smallest cost I found overall was 98907 NP for 3 large, 181 medium and 3 small pizzas.
lennyfan
 
  1  
Reply Wed 7 Oct, 2009 11:25 am
@willzi8,
Quote:
Got the program written (I will post the code on Wed. if anyone is interested)


Let's see the Python program, too.
willzi8
 
  1  
Reply Wed 7 Oct, 2009 02:46 pm
@lennyfan,
import math
priceList = []
for x in range(0, 101):
for y in range(0, 190):
smallP =int((37870 - ((121*math.pi*x)+(64*math.pi*y)))/(36*math.pi)) + 1
if smallP >= 0:
price = (299*smallP)+(525*y)+(995*x)
priceList.append(price)
priceList.sort()
print priceList[0]
raw_input("")

I got top 250 and I submitted it on Friday
0 Replies
 
lennyfan
 
  1  
Reply Wed 7 Oct, 2009 03:23 pm
New Lenny is out. They want the most popular (wrong) answer from last week.
0 Replies
 
willzi8
 
  1  
Reply Wed 7 Oct, 2009 03:27 pm
In last week's Lenny Conundrum, the correct answer was 98907. However, that was not the most popular submitted answer. What was the most popular submitted answer to last week's Lenny Conundrum?
Hey, I think I know that one 8)
lennyfan
 
  1  
Reply Wed 7 Oct, 2009 03:30 pm
@willzi8,
Really? I thought you got it right. And the answers on this board were all over the place.
willzi8
 
  1  
Reply Wed 7 Oct, 2009 03:40 pm
@lennyfan,
I did, but I took note of some other things Wink
0 Replies
 
Sniffy
 
  1  
Reply Wed 7 Oct, 2009 03:56 pm
@willzi8,
I think I'll enter what I entered last week, lol
0 Replies
 
jjbuttcrack
 
  1  
Reply Wed 7 Oct, 2009 04:02 pm
yeah -- i submitted my answer from last week's too.
maybe a lot of people did the same thing i did.
(?)
but really, this week is a total guess.
0 Replies
 
lennyfan
 
  1  
Reply Wed 7 Oct, 2009 04:32 pm
My guess for this week is to assume that a lot of people didn't realize they needed to buy more than one size pizza.
0 Replies
 
tutors
 
  1  
Reply Thu 8 Oct, 2009 05:51 am
i put in what i would have answered if i wanted to answer :p
0 Replies
 
Firestar624
 
  1  
Reply Wed 14 Oct, 2009 11:33 am
@wertyiu102,
Lol the answer u had said was the most popular incorrect answer. Laughing
podogo
 
  1  
Reply Wed 14 Oct, 2009 11:39 am
Congratulations! You have guessed correctly in the Lenny Conundrum game (round 329). You have won 2128 NP!

Because you were in the first 250 to guess correctly, you also have been awarded a Whole Pepperoni and Mushroom Pesto Pizza, and receive a trophy and the Lenny Conundrum avatar!

got gold
emer1ka
 
  1  
Reply Wed 14 Oct, 2009 12:05 pm
@podogo,
Round: 329

In last week's Lenny Conundrum, the correct answer was 98907. However, that was not the most popular submitted answer. What was the most popular submitted answer to last week's Lenny Conundrum?




Answer: 95025
podogo
 
  1  
Reply Wed 14 Oct, 2009 12:11 pm
@emer1ka,
actually was too easy last week
0 Replies
 
lennyfan
 
  1  
Reply Wed 14 Oct, 2009 04:02 pm
So does anyone know how people got that wrong answer other than copying it from wertyiu102's wrong answer posted on this board? I'm interested in what people did to calculate that answer. Wertyiu102, could you explain how you got it?
 

Related Topics

Lenny Conundrum 464 - Question by jreneearias
Lenny Conundrum #463 - Discussion by barkie
Lenny Conundrum (wed) DECEMBER 8 2010 - Question by Joanneexoxo
answers - Question by qftcu1
Lenny Conundrum 354 - Discussion by hippiegirl101
lenny conundrum 4/16 - Question by punkd4life3
 
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.96 seconds on 04/19/2025 at 03:17:13