Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code Challenge: Snacky Friends, a donkey, and Apples
#21
Quote:See if this holds up. These guys may eat a few less than you think:

Testing 51

51 / 3 = 17 R 0 fail need Remainder 1 to give to Donkey

'52 / 3 = 17 R 1 52 - 17 - 1 = 34

'34 / 3 = 11 R 1 34 - 11 - 1 = 22

'22 / 3 = 7 R 1 so 7 for each

'26 + 7 = 33 1st
'17 + 7 = 24 2nd
'11 + 7 = 18 3rd
' +4 Donkey
====================
= 79 It works alright

(08-05-2024, 04:29 PM)Pete Wrote: When I need answers to difficult programming approaches, I consult Clippy... then do the opposite. Works every time! Clippy, the Anti-Maze.

Pete Big Grin

This reminds me of Seinfeld when George started succeeding in Life by doing the opposite of his first instinct.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: Code Challenge: Snacky Friends, a donkey, and Apples - by bplus - 08-05-2024, 04:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Challenge for you... eoredson 61 12,989 01-11-2026, 03:48 AM
Last Post: bplus
  Correcting the code Chris 15 3,256 10-28-2023, 09:48 PM
Last Post: SMcNeill
  Summer LASER Challenge TerryRitchie 42 8,973 07-30-2023, 06:57 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)