You are not logged in.
27963
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
27976
2 + 7 - 9 + 7 + 6 = 13
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
27989
- 2 + 7 + 9 + 8 - 9 = 13
Puzzle:
- TWO - SEVEN + NINE + EIGHT - NINE = 27989
Each letter in the puzzle stands for a different single-digit number from 0 to 9, and the sum of the digits on the left-hand side of the equation is a multiple of 13.
Find the letter values. The puzzle has a unique solution.
Hi Bobby;
The standard forms of your code and rasher's give multiple solutions, but I added some code for the 'multiple of 13' constraint to output just the unique solution for both programs.
Total running times were 2.3 seconds (rasher's) and 60.4 seconds (yours).
Last edited by phrontister (2015-10-13 14:04:06)
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28002
2 + 8 + 0 + 0! + 2 = 13
- 214 - 36869 + 9596 + 65072 - 9596 = 27989
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Correct, Bobby!
28028
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28041
2 + 8 + 0 + 4 - 1 = 13
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
28054
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28067
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
28080
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28093
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
28106
The sum of the digits of the sum of all of the main answers that should have been given (and most were) up to and including this post = 13 + 13 + 13.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28132
28 - 13 - 2 = 13
Puzzle:
- TWO - EIGHT - ONE + THREE - TWO = 28132
Each letter in the puzzle stands for a different single-digit number from 0 to 9 (only nine of which are used, including the number 9), and the sum of the sum of the digits on the left-hand side of the equation = 13.
Find the letter values. The puzzle has a unique solution.
Last edited by phrontister (2015-11-01 20:05:14)
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
I have a couple of answers but do not understand that the LHS adds up to 13? What do I do with those negative signs?
28145
2 - 8 + 14 + 5 = 13
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
28158
Hi Bobby;
Maybe my wording was ambiguous. Anyway, I've fixed it (I hope) by adding "(their 'absolute value')" after "digits".
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28171
Hi phrontister;
How do I handle -458 - 78543 for instance?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
28184
Hi Bobby;
M, Rasher's code and your code all evaluate -458 - 78543 as -79001, as do all the calculators I tried it in (including MIF's new Scientific Calculator).
Edit: Oops!! Sorry, Bobby...I made a mistake. The wording should be:
Each letter in the puzzle stands for a different single-digit number from 0 to 9 (only nine of which are used, including the number 9), and the sum of the sum of the digits on the left-hand side of the equation = 13.
I've corrected post #2164.
Last edited by phrontister (2015-11-01 20:07:17)
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
Hi;
- 601 - 38476 - 123 + 67933 - 601 = 28132
28197
2 + 8 + 1 + 9 - 7 = 13
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Yep...got 'im.
28210
2 + 8 + 2 + 1 + 0 = 13
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28223
2 * 8 + 2 - 2 - 3 = 13
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
28236
- 2 x 8 +23 + 6 = 13
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson
Offline
28249
28 - 2 - 4 - 9 = 13
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
28275
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline