Various incomplete solutions
This commit is contained in:
10
ProjectEuler/031/desc.yml
Normal file
10
ProjectEuler/031/desc.yml
Normal file
@ -0,0 +1,10 @@
|
||||
title: Investigating combinations of English currency denominations.
|
||||
url: http://projecteuler.net/problem=31
|
||||
|
||||
desc: |
|
||||
In England the currency is made up of pound, £ and pence, p, and there are eight coins in general circulation:
|
||||
1p, 2p, 5p, 10p, 20p, 50p, ñ (100p) and £ (200p).
|
||||
It is possible to make £ in the following way:
|
||||
1£ + 150p + 220p + 15p + 12p + 31p
|
||||
How many different ways can £ be made using any number of coins?
|
||||
solution: Define the target value as 200 to simplify
|
4
ProjectEuler/031/solve.php
Normal file
4
ProjectEuler/031/solve.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$start = 200;
|
||||
|
||||
for($c = 0; $c > $left; $c++);
|
Reference in New Issue
Block a user