Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Manuel Nores
Project Euler
Commits
dbfc2855
Commit
dbfc2855
authored
Jul 25, 2019
by
Manuel Nores
Browse files
avances en el 78
parent
a2c1736c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Python/id_078.py
Python/id_078.py
+1
-1
No files found.
Python/id_078.py
View file @
dbfc2855
...
...
@@ -27,7 +27,7 @@ def coinPartition(n, restriction):
for
i
in
range
(
restriction
,
0
,
-
1
):
res
+=
coinPartition
(
n
-
i
,
min
(
i
,
restriction
,
n
-
i
))
cache
[
str
(
n
)
+
"_"
+
str
(
restriction
)]
=
res
cache
[
str
(
n
)
+
"_"
+
str
(
restriction
)]
=
res
%
1000000
return
res
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment