I never did the whole counting sheep thing. When I was young, I would instead look at my digital alarm clock and play this game I invented. After playing for a while, I'd get tired and go to sleep.
The objective was to take the 3 (or 4) numbers and then make them equal either zero or one.
-I could move the numbers around in any order.
-I could not repeat the use of any number*.
-I could use any mathematical operator or operation I knew of.
*this means I could raise to a power, which technically means I can repeat the use of a number. No raising to the power of zero! That is cheating!
-I had 60 seconds to find a solution, because in 60 seconds, I'd have new numbers.
Example: 12:29
Code:[1,2,2,9] has a solution (9 / ( 1 + 2 ) ) - 2 = 1
Example: 12:33
Code:[1,2,3,3] has a solution 3 + 3 - 1 - pow( 2 , 2 ) = 1
Example: 12:36
Code:[1,2,3,6] has a solution 1 + 2 + 3 - 6 = 0
Example: 1:29
Code:[1,2,9] has a solution 9 - pow( 2 , 2 ) - 1 = 0
I guess I thought I'd just share. I'm having a hard time sleeping tonight, so I thought I'd share my weird elementary math bed game with you. I grew up to be an engineer... go figure right?
Military time is way more fun to do this with, IMO
A
R
Try it using your current time!