There have been many "Do __ without __" challenges before, but I hope that this is one of the most challenging.
The Challenge
You are to write a program that takes two natural numbers (whole numbers > 0) from STDIN, and prints the sum of the two numbers to STDOUT. The challenge is that you must use as few +
and -
signs as possible. You are not allowed to use any sum-like or negation functions.
Examples
input
123
468
output
591
input
702
720
output
1422
Tie Breaker:
If two programs have the same number of +
and -
characters, the winner is the person with fewer /
*
(
)
=
.
,
and 0-9
characters.
Not Allowed: Languages in which the standard addition/subtraction and increment/decrement operators are symbols other than +
or -
are not allowed. This means that Whitespace the language is not allowed.
+
,-
and tie breaker characters? ...or do you need to change the rules again :-) \$\endgroup\$