Win a copy of Kotlin Cookbook this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

puzzle of the day

 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
44
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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 ]
 
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You see, sona, nobody here is sleeping, we all are waiting for your next puzzle!
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sleeping with who?
 
sona gold
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok guys.. the correct answer is 44
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 4702
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the problem i see with that is there are 2 alternating background colors
 
Mapraputa Is
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you get the color wrong, it's easy to edit afterwards.
 
Randall Twede
Ranch Hand
Posts: 4702
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cool
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good demo of using the wrong color.
 
Just the other day, I was thinking ... about this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!