Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Programming Diversions
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Programming Diversions
Pigs in pens
HS Thomas
Ranch Hand
Posts: 3404
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
A farmer has nine pigs . Can she put them in 4 pens so that there is an odd number of pigs in each pen ?
&PIG &PIG &PIG &PIG &PIG &PIG &PIG &PIG &PIG
Simple but nasty!
regards
[ August 18, 2003: Message edited by: HS Thomas ]
Rafael Prado
Ranch Hand
Posts: 33
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
+---+---+---+ | P | P | P | | P | P | P | | P | P | P | +---+---+---+
HS Thomas
Ranch Hand
Posts: 3404
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Good start. Where is the 4th pen ? A bit too conservative on pens, I think.
Rafael Prado
Ranch Hand
Posts: 33
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The 4th pen is the outside one, which gets 9 pigs (odd number).
Didn't that count?
[ August 18, 2003: Message edited by: Rafael Prado ]
HS Thomas
Ranch Hand
Posts: 3404
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
OK, I concede the outer square is the 4th pen.
Just checking!
_________________ | ______________ | || P P P || ||______________|| || P P P || ||______________|| || P P P || ||______________|| |________________|
In case anyone trying to count the pens.
regards
[ August 18, 2003: Message edited by: HS Thomas ]
Jim Yingst
Wanderer
Posts: 18671
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Or:
+-------------+ |+-----------+| ||+---------+|| |||+-------+||| |||| P P P |||| |||| P P P |||| |||| P P P |||| |||+-------+||| ||+---------+|| |+-----------+| +-------------+
"I'm not back." - Bill Harding,
Twister
HS Thomas
Ranch Hand
Posts: 3404
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Those are well-penned pigs ,Jim.
Or, if you want to maintain a hierarchy : Pigs like that . Re: The Animal Farm by George Orwell.
/\ / \ / \ / _ \ / _|P|_ \ / |PPP| \ / _|___|_ \ / |PPPPP| \ / |_____| \ /__________________\
[ August 18, 2003: Message edited by: HS Thomas ]
HS Thomas
Ranch Hand
Posts: 3404
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Or:
/\ / \ / P \ / P P \ /________\ /\ /\ / \ / \ / P \ / P \ / P P \ / P P \ /________\/________\
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Dice Question
Revolutions that changed the world
Applet or Webstart
Just call me helpful!
Great re-runs of the 80's, 70's ; or 60's
farm report: building a farrowing hut (pic)
More...