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 man is stranded on a desert island. All he has to drink is a 20 oz bottle of sprite.
To conseve his drink he decided that on first day he will drink one oz and refill the bottle back up with water. On the 2nd day he will drink 2 oz and refill the bottle. on the 3rd day and so on...
By the time all the sprite is gone, how much water has he drunk?
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
20 oz
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
190 oz.
 
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everyday he filled with pure water, so the water he drank is the water he filled.
So he totally drank
1 + 2 + .... + 19 = 190
that is after day 20 when drink all the fluid in the bottle.
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jim Yingst:
190 oz.


I agree with you.
 
Sameer Jamal
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Sameer Jamal:
20 oz


That too of a sprite
He did not drank even a drop of water
Am I right
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
190 + 18 = 208 oz
sprite is 90% water
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
133?
 
Ranch Hand
Posts: 4702
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where did he get the water to refill the bottle?


a man is stranded on a desert island. All he has to drink is a 20 oz bottle of sprite.

 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point, Gagan.
Randall - maybe it's a desert island in the midst of a freshwater lake. Or maybe the man is going ahead and drinking saltwater. I doubt he'd last twenty days at that rate though.
 
sona gold
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok guys... its Don Liu again
the answer is
190 oz
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not fair. Jim said "190" 4 minutes earlier. I think, he just drunk and refilled the bottle faster :roll:
[ April 25, 2002: Message edited by: Mapraputa Is ]
 
Enjoy the full beauty of the english language. Embedded in 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!