#24 A leisurely written program that is meant to compute the solutions to the game 24.
http://en.wikipedia.org/wiki/24_Game
##Usage Since 1, 4 and 24 are but just numbers, the author had simply rid the program of such petty mortal limits. The program takes in any number of numbers and numerates numerous answers for any number.
However, as floating points are weak and clumsy creatures, all solutions with floating point/decimal intermediates were purged.
- Either compile and run 24.cpp or run 24.exe if possible.
- Enter numbers.
- Enter answer.
- Wait for a few eternities.
- Long list of solution prints.
##Algorithm Despite meditating upon the problem for many years on a mountain, the author has only managed to implement a brute force solution to the problem. Finding the complexity of this said solution is beyond the mathematical capability of both the author and Wolfram Alpha. The last estimate made on the run time has it at ∑(k:1→n) 6k(n!/k!)2(n-k+1) where n is the number of numbers fed in, and will produce a numnber larger than the height of the aforementioned holy mountain in millimeters should n be around 10.
Defeated by these trivial problems, the author saw 112 paths ahead. Between meditating upon the problem more, studying the mysterious forces of mathematics and worshipping the Bell-Curve god, the author has chosen the last option as his life goal.
![Praise the holy A+!](http://3.bp.blogspot.com/-kw8jkeovMx4/T3Kmf-uv-OI/AAAAAAAAAqE/f7ep0hcbr0s/s400/229150_124092877671131_124092434337842_201513_3694701_n.jpg Praise the holy A+!)
To individuals who were foolish enough the confront the wrath of the exponentiation beast, the author presents to you the following magic charm, and wishes you luck on your journey.
CTRL+C
##Author Yichen
- Head Priest, Church of the Holy Gaussian Graph
- http://github.com/yichenshen
##Copyright and License "THE BEER-WARE LICENSE" (Revision 42):
Yichen wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
Yichen