aspose file tools
The moose likes Meaningless Drivel and the fly likes puzzle of the day Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Reply Bookmark "puzzle of the day" Watch "puzzle of the day" New topic
Author

puzzle of the day

sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
a cube is made of white material, but he exterior is painted black.
if the cube is cut into 125 smaller cubes of exactly the same size, how many of the cubes will have atleast 2 of their sides painted black?


sona<br />SCJP
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
44


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
<pre>
3 2 2 2 3
2 2 2
2 2 2
2 2 2
3 2 2 2 3 3
2 2 2
2 2 2
2 2 2
3 2 2 2 3
</pre>
...out of which 36 will have exactly two sides painted and 8 three sides. Painted.
[ April 24, 2002: Message edited by: Mapraputa Is ]

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Only the surface small cubes are possible to have black side(s). There are 3 kinds of surface small cubes: corner, edge, and rest. Only corner and edge ones are possible to have more than 1 black sides.
There are 8 corner ones and 3 x 12 = 36 edge ones. So the answer is:
8 + 36 = 44
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
You see, sona, nobody here is sleeping, we all are waiting for your next puzzle!
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Sleeping with who?
sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
well u see guys.. i don't lose my temper so easily
until and unless u really piss me off..
well i will try and post a puzzle whenever possible
sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
ok guys.. the correct answer is 44
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Whatever happened to the practice of using the background color so that you didn't have to see the answer unless you wanted to. Out of here for a few days and this is what happens :roll:
sona gold
Ranch Hand

Joined: Feb 14, 2001
Posts: 234
yeah i was also thinking... abt this... its not right to put the correct answer so soon.. there might be people who would be wanting to try it out..
any ideas people.. how do we manage this
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
There are some posts on this from when we were following this practice. Use the font color tag. I have to run to my daughters basketball games. Somebody want to do a search and post the link.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4095
    
    1
the problem i see with that is there are 2 alternating background colors


SCJP
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Well, they follow pretty regular pattern...
Just look at the last message and figure out that your post will be on another color
Here are tags.
For "light" background:
<font color="#f0e6d5">some text</font>
For "dark" background:
<font color="#eadbc4">some text</font>
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
If you get the color wrong, it's easy to edit afterwards.


"I'm not back." - Bill Harding, Twister
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4095
    
    1
cool
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
Good demo of using the wrong color.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: puzzle of the day
 
Similar Threads
method signature in java
need help in getting data from OLAP
Objects, unsure how this works.
BlackBox(tm)
Rubik's Cube Hell