MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / fifty_pence

Function fifty_pence

project_euler/problem_031/sol1.py:36–37  ·  view source on GitHub ↗
(x: int)

Source from the content-addressed store, hash-verified

34
35
36def fifty_pence(x: int) -> int:
37 return 0 if x < 0 else fifty_pence(x - 50) + twenty_pence(x)
38
39
40def one_pound(x: int) -> int:

Callers 1

one_poundFunction · 0.85

Calls 1

twenty_penceFunction · 0.85

Tested by

no test coverage detected