Returns the number of different ways can n pence be made using any number of coins? >>> solution(500) 6295434 >>> solution(200) 73682 >>> solution(50) 451 >>> solution(10) 11
(n: int = 200)
| 46 | |
| 47 | |
| 48 | def solution(n: int = 200) -> int: |
| 49 | """Returns the number of different ways can n pence be made using any number of |
| 50 | coins? |
| 51 | |
| 52 | >>> solution(500) |
| 53 | 6295434 |
| 54 | >>> solution(200) |
| 55 | 73682 |
| 56 | >>> solution(50) |
| 57 | 451 |
| 58 | >>> solution(10) |
| 59 | 11 |
| 60 | """ |
| 61 | return two_pound(n) |
| 62 | |
| 63 | |
| 64 | if __name__ == "__main__": |