diff --git a/CodeChef/easy/HS08TEST/solve.php b/CodeChef/easy/HS08TEST/solve.php new file mode 100644 index 0000000..c8cb93b --- /dev/null +++ b/CodeChef/easy/HS08TEST/solve.php @@ -0,0 +1,13 @@ + $left; $c++); \ No newline at end of file diff --git a/ProjectEuler/032/desc.yml b/ProjectEuler/032/desc.yml new file mode 100644 index 0000000..4f396fb --- /dev/null +++ b/ProjectEuler/032/desc.yml @@ -0,0 +1,10 @@ +title: Find the sum of all numbers that can be written as pandigital products. +url: http://projecteuler.net/problem=32 + +desc: | + We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigital. + The product 7254 is unusual, as the identity, 39 x 186 = 7254, containing multiplicand, multiplier, and product is 1 through 9 pandigital. + Find the sum of all products whose multiplicand/multiplier/product identity can be written as a 1 through 9 pandigital. + HINT: Some products can be obtained in more than one way so be sure to only include it once in your sum. +solution: Bruteforce + diff --git a/ProjectEuler/032/solve.php b/ProjectEuler/032/solve.php new file mode 100644 index 0000000..80f944a --- /dev/null +++ b/ProjectEuler/032/solve.php @@ -0,0 +1,6 @@ +1,50=>1,51=>1,52=>1,53=>1,54=>1,55=>1,56=>1,57=>1)) { return true;} else { return false; } +} \ No newline at end of file diff --git a/ProjectEuler/034/desc.yml b/ProjectEuler/034/desc.yml new file mode 100644 index 0000000..7c414ef --- /dev/null +++ b/ProjectEuler/034/desc.yml @@ -0,0 +1,13 @@ +title: Find the sum of all numbers which are equal to the sum of the factorial of their digits. +url: http://projecteuler.net/problem=34 + +desc: | + 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. + Find the sum of all numbers which are equal to the sum of the factorial of their digits. + Note: as 1! = 1 and 2! = 2 are not sums they are not included. +solution: Bruteforce +solutons: + solve.php: + desc: Basic solution + language: php + diff --git a/ProjectEuler/034/solve.php b/ProjectEuler/034/solve.php new file mode 100644 index 0000000..819142e --- /dev/null +++ b/ProjectEuler/034/solve.php @@ -0,0 +1,16 @@ +